ferruzzi commented on issue #44694: URL: https://github.com/apache/airflow/issues/44694#issuecomment-2569984392
I can't seem to reproduce this on my laptop either, but would adding a call to get_job_state [here](https://github.com/apache/airflow/blob/main/providers/src/airflow/providers/amazon/aws/hooks/glue.py#L269) do the trick? Something along the lines of: ``` if len(fetched_logs): # Add a tab to indent those logs and distinguish them from airflow logs. # Log lines returned already contain a newline character at the end. messages = "\t".join(fetched_logs) self.log.info("Glue Job Run %s Logs:\n\t%s", log_group, messages) elif self.get_job_state(job_name, run_id) in ["FAILED", "TIMEOUT", "SUCCEEDED", "STOPPED"]: # no new logs and the job has terminated return else: # no new logs but job isn't finished, print a "waiting..." message self.log.info("No new log from the Glue Job in %s", log_group) ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
