I have a simple PythonOperator
:
def simple():
print ("start simple")
for i in range (10):
time.sleep(0.7)
print("hello from simple")
print ("end simple")
When looking on the logs window, I need to refresh the page in order to see new logs.
Is it possible for the logs to be updated automatically?
For Airflow>=2.4.0:
Supprt for logs auto refresh was added to Grid View (See PR)
You can configure the refresh interval by setting auto_refresh_interval (Note this effect other views as well)
For Airflow<2.4.0:
There is no option for that. There is an open feature request to add this ability for future Airflow versions: Auto-refresh of logs
You can use browser plugins to get this functionality. Chrome has Easy Auto Refresh (and probably many other plugins in that area)