vincbeck commented on code in PR #40867:
URL: https://github.com/apache/airflow/pull/40867#discussion_r1683341652
##########
airflow/providers/amazon/aws/executors/batch/batch_executor.py:
##########
@@ -292,12 +292,13 @@ def attempt_submit_jobs(self):
if failure_reason:
if attempt_number >=
int(self.__class__.MAX_SUBMIT_JOB_ATTEMPTS):
- self.send_message_to_task_logs(
- logging.ERROR,
- "This job has been unsuccessfully attempted too many
times (%s). Dropping the task. Reason: %s",
- attempt_number,
- failure_reason,
- ti=key,
+ self.log_task_event(
+ record=Log(
+ event="executor queue failure",
Review Comment:
It is a failure to submit/execute/run a Batch job that has been dequeued.
But the failure is not coming from the queue, it is just whatever job we got
from the queue failed to submit/execute/run
--
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]