-
Notifications
You must be signed in to change notification settings - Fork 58
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
Task events for scheduler #1956
Comments
Future work on this could also include which runner-instance executed the job, and how many resources where consumed (cpu, ram, network-io), as those could be useful for the scheduler to rank on for future jobs on similar objects. |
During a discussion with Donny about the current implementation, we condensed the following considerations: Considerations
@underdarknl thoughts? |
|
Awesome, thanks for the feedback! In regards to indices, we still have that possibility to add indices to specific fields in the jsonb column if we wanted to, which is really great. |
If we can store the metrics in the boefje meta we might not even need the 'archived' storage, since for most lookups on historical jobs we would already load the boefje meta from bytes anyway. This would simplify things to hold just the data the scheduler needs for its own priority calculations. |
Checklist for QA:
What works:From a UI point of view everything still works as it's supposed to be. The onboarding flow works, additional boefjes are scheduled as intended and they complete. What doesn't work:n/a. Bug or feature?:n/a |
TLDR Potential solutions:
Other discussions:
|
@underdarknl fyi see the comment above this one for the latest updates on this discussion |
Related issues:
Currently, we only have
created_at
andmodified_at
timestamp information for tasks. Status changes can only be derived from the status and themodified_at
, any other mutations and events are lost.It would be helpful to know how long a task was queued, and how long this task took when it was picked up and finished.
The most straightforward solutions seems to be adding more datetime columns for these state changes or adding an events table with a 1:m relation between a task and task events that then can be referenced from a task.
The text was updated successfully, but these errors were encountered: