Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

dstandish
Copy link
Contributor

draft!

@boring-cyborg boring-cyborg bot added area:Executors-core LocalExecutor & SequentialExecutor area:providers area:Scheduler including HA (high availability) scheduler provider:amazon-aws AWS/Amazon - related issues labels Jul 12, 2024
@dstandish dstandish changed the title Add task instance event log table DRAFT Add task instance event log table Jul 12, 2024
Copy link
Contributor

@vincbeck vincbeck left a 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."""
Copy link
Contributor

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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

@dstandish
Copy link
Contributor Author

closing in favor of #40739

@dstandish dstandish closed this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Executors-core LocalExecutor & SequentialExecutor area:providers area:Scheduler including HA (high availability) scheduler provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants