Skip to content

Feat; job_queue table definition & mark a request as complete if all jobs are finished #2200

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

Conversation

Jamesbarford
Copy link
Contributor

  • Creates the job_queue table.
  • Inserts into the job_queue.
  • Marks a benchmark_request as complete if all jobs associated with the request have the status of success or failure.

I've omitted job_splitting as this PR is modestly big. However, bar marking things as complete, the PR is fairly mechanical.

@Jamesbarford Jamesbarford force-pushed the feat/split-benchmark-requests-to-jobs branch 3 times, most recently from 3e1489a to d0ed82f Compare July 14, 2025 08:45
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Did a quick scan and left a bunch of comments, but it would likely be best to discuss this at our call.

1
FROM
job_queue
WHERE job_queue.request_id = benchmark_request.id
Copy link
Member

Choose a reason for hiding this comment

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

Once we also add the parent benchmark tag here, could you please run EXPLAIN to make sure that the jobs (not requests) are looked up by index? Also would be nice to check if requests are accessed by index.

@Jamesbarford Jamesbarford force-pushed the feat/split-benchmark-requests-to-jobs branch from f7f9747 to eb422a5 Compare July 30, 2025 14:35
@Jamesbarford
Copy link
Contributor Author

Superseded by; #2214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants