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

feat(RQ Job): Extended List capabilities & re-enqueue #26368

Closed
wants to merge 4 commits into from

Conversation

gavindsouza
Copy link
Collaborator

@gavindsouza gavindsouza commented May 7, 2024

Changes

  • Add Re-queue action for Failed Job (New Action in Form View)
  • Implement order_by, fields and as_list in get_list (Enables Load More, Sorting by different columns, in List View)

@gavindsouza gavindsouza requested a review from a team as a code owner May 7, 2024 14:47
@gavindsouza gavindsouza requested review from akhilnarang and removed request for a team May 7, 2024 14:47
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label May 7, 2024
@gavindsouza gavindsouza removed the add-test-cases Add test case to validate fix or enhancement label May 8, 2024
order_desc = "desc" in order_by
return sorted(jobs, key=lambda j: j.creation, reverse=order_desc)
sort_comparator = partial(rq_comparator, sort_key=sort_key)
sorted_jobs = sorted(jobs, key=sort_comparator, reverse=order_desc)[start : start + page_length]
Copy link
Member

@ankush ankush May 13, 2024

Choose a reason for hiding this comment

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

This was deliberately not implemented. If you have 1000s of jobs this will serialize all of them. This is what used to break bench doctor completely (probably still does)

We can't have diagnostics tools fail to load, that defeats the whole purpose.

Some alternate hack for paging can be based on sorted job names maybe (?)

3ae2d19

Copy link
Member

Choose a reason for hiding this comment

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

Previous background jobs page also used to do this, just keeping that page open would bring the site down because it was serializing all jobs every 5 seconds.

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.

None yet

2 participants