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

Track retries in Execution model #3989

Open
Tracked by #4015
wdbaruni opened this issue May 13, 2024 · 0 comments
Open
Tracked by #4015

Track retries in Execution model #3989

wdbaruni opened this issue May 13, 2024 · 0 comments
Assignees
Labels
comp/scheduler Related to job scheduling components

Comments

@wdbaruni
Copy link
Collaborator

wdbaruni commented May 13, 2024

We need to keep track of past retries somewhere so that when an execution fails, we need to know the previous attempts for that same execution to decide if we should reschedule or fail.

The right place to keep track of this information is in the Execution instead of history entries or any other type of entries. Reasons include:

  1. There won't be APIs or reasons to access the retries independently of the execution itself
  2. We want to share the previous attempts to users when they describe an execution
  3. We want to keep track of all retries related to the same execution and not just the retry count as we want to know the number of retries within a sliding window
  4. We want to have efficient access to these retries in the scheduler side. No need to query the execution, and then again query these retry entries, or chain executions and keep querying previous executions.
  5. Chaining of executions might cause problems or limit what we can do with state garbage collection

With that in mind, and while it might seem duplication of state or inefficient writes, every execution model will hold rescheduling events of previous executions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp/scheduler Related to job scheduling components
Projects
Status: Next
Development

No branches or pull requests

1 participant