-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't see failed sensor task log on webpage #26960
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
When the tasks runs and fails you will see the logs you must have made a mistake.. When you manually set it to failed you will not see logs. This is expected behaviour because when you set the tasks to failed before manually runing the task it does not produce any log. |
there may be some misunderstanding, I want to express that the sensor has been running for a while and produce some log, when the error happen or manually set to failed, the old produced log can't be seen on webpage but can be found in /opt/airflow/logs. |
Can you see if there are any errors in the console of your browser? Without it it is impossible to diagnose it. |
Generally - please explain more details what you do - otherwise it might be impossible to solve. (BTW,. The more information you provide the higher chance you will get that someone wiil help to solve your problem - for example you never mentioned that the logs are there, were there and disappeared - hence it was not "misunderstanding" but lack of sufficient information). |
sorry, let me post more detail, my dag is like this
when the task is in running/up_for_reschedule state, checking log will send a get requests to http://localhost:8080/get_logs_with_metadata?dag_id=test_sensor&task_id=ob&map_index=-1&execution_date=2022-10-10T07%3A27%3A13.805132%2B00%3A00&try_number=1&metadata=null when the task in up_for_reschedule state, manually set task to failed or the task change to failed state with some unknown reason, the brower will not send the requests above |
cc: @bbovenzi / @pierrejeambrun -> this one seems interesting (no time to verify it though before going for vacation). |
@shokosanma I think I've replicated the issue. But can you check if the logs for that task instance show up in the grid view? |
@bbovenzi thanks. |
Apache Airflow version
2.4.1
What happened
when the sensor running, I can see the log above, but when I manual set the task state to failed or the task failed by other reason, I can't see log at here
In other version airflow, like 2.3/2.2, this still happens
What you think should happen instead
No response
How to reproduce
No response
Operating System
Ubuntu 20.04.4 LTS (Focal Fossa)
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: