-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
DRAFT Add task instance event log table #40761
Conversation
55e1079
to
1447e99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! Should we also deprecate/remove TaskContextLogger
?
class EventLogCollection(NamedTuple): | ||
"""List of import errors with metadata.""" | ||
|
||
event_logs: list[Log] | ||
total_entries: int | ||
|
||
class TaskInstanceEventLogCollection(NamedTuple): | ||
"""List of import errors with metadata.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy pasta
task_key, | ||
reasons_str = ", ".join(failure_reasons) | ||
self.log.error( | ||
"ECS task %s has failed %s times. Marking as failed. Reasons: %s" % task_key, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ECS task %s has failed %s times. Marking as failed. Reasons: %s" % task_key, | |
"ECS task %s has failed %s times. Marking as failed. Reasons: %s", |
And pass task_key
as first parameter
1447e99
to
e1048d5
Compare
closing in favor of #40739 |
draft!