You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "sam-gen-cop (via GitHub)" <gi...@apache.org> on 2024/11/25 08:19:26 UTC
[I] Log URL redirecting to No XCom error [airflow]
sam-gen-cop opened a new issue, #44337:
URL: https://github.com/apache/airflow/issues/44337
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.10.1
### What happened?
The Log URL (`ti.log_url`) from the triggered retry email doesn't redirect to the Logs when clicked but instead shows 'No XCom' as the error in the Airflow UI. The Logs are shown when a time in future is selected as the `base_date` in the UI.
Before changing the base_date in the UI,

After adding 1 second to the base_date in UI,

### What you think should happen instead?
I think the issue might be due to milli seconds getting truncated which causes the difference between the execution datetime (untruncated) and the execution datetime rendered - `base_date` (truncated) in the `ti.log_url`
### How to reproduce
Here is the DAG to reproduce the issue,
```
from airflow.decorators import dag, task
from datetime import datetime, timedelta
@dag(
dag_id='default_email_on_retry_example',
schedule_interval='@once',
start_date=datetime(2023, 1, 1),
catchup=False,
default_args={
'email': ['your@email.com'],
'email_on_retry': True,
'email_on_failure': False,
},
)
def default_email_on_retry_dag():
@task
def success_task():
print("This task will always succeed!")
@task(task_id='retry_task', retries=3, retry_delay=timedelta(seconds=15))
def retry_task():
print("This task will retry and fail.")
raise Exception("Simulated task failure for retry.")
success = success_task()
retry = retry_task()
success >> retry
default_email_on_retry_dag()
```
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Amazon (AWS) MWAA
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "isaiahiruoha (via GitHub)" <gi...@apache.org>.
isaiahiruoha commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3115336515
FYI I think this was fixed in [#50306](https://github.com/apache/airflow/pull/50306), and the fix is [available in 2.11](https://airflow.apache.org/docs/apache-airflow/2.11.0/release_notes.html#bug-fixes).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "dada-engineer (via GitHub)" <gi...@apache.org>.
dada-engineer commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3195548675
> > Is there some docs that the BASE_URL needs to end with a slash for this to work correctly or is this considered a new bug?
>
> Worth if you could create a PR for that [@dada-engineer](https://github.com/dada-engineer) -> either documenting or (better) checking that BASE_URL cannot end with `/`.
Created
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "dada-engineer (via GitHub)" <gi...@apache.org>.
dada-engineer commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3125729239
Is there some docs that the BASE_URL needs to end with a slash for this to work correctly or is this considered a new bug?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #44337: Log URL redirecting to No XCom error
URL: https://github.com/apache/airflow/issues/44337
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "adan-shahid (via GitHub)" <gi...@apache.org>.
adan-shahid commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-2628997941
@potiuk I want to work on this issue. Kindly assign it to me and guide me on how to get started?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "moz3 (via GitHub)" <gi...@apache.org>.
moz3 commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-2547176366
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-2497202895
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "Qnog-frog (via GitHub)" <gi...@apache.org>.
Qnog-frog commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3016509144
+1 in 2025
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "pranav-cs-1 (via GitHub)" <gi...@apache.org>.
pranav-cs-1 commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-2552834438
Hi @potiuk could you please assign the issue to me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "dada-engineer (via GitHub)" <gi...@apache.org>.
dada-engineer commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-2507954068
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "lpillmann (via GitHub)" <gi...@apache.org>.
lpillmann commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3114328152
I tested it in 2.11 and it works as expected. It fails for 2.10.3, though - tested both locally today
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Log URL redirecting to No XCom error [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #44337:
URL: https://github.com/apache/airflow/issues/44337#issuecomment-3131588867
> Is there some docs that the BASE_URL needs to end with a slash for this to work correctly or is this considered a new bug?
Worth if you could create a PR for that @dada-engineer -> either documenting or (better) checking that BASE_URL cannot end with `/`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org