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

F/692 pause resume jobs at once #868

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ahnwarez
Copy link
Contributor

@ahnwarez ahnwarez commented Jan 2, 2025

This PR addresses a requested feature in issue #692 so that users can pause or resume all queues at once with a single click. I'm one of the users who is keen to have this feature as it makes easier to control all queues.

A new component is added to the OverviewPage.tsx that displays a drop-down list.

Screenshot 2025-01-03 at 9 09 03 AM

The frontend component calls an api to the backend to loop over every queue to pause or resume.

  • /api/queues/pause
  • /api/queue/resume

…esume functionality; update OverviewPage layout and styles

- Introduced a new `OverviewActions` component that provides pause and resume actions for queues.
- Updated `OverviewPage` to include the new `OverviewActions` component in the header.
- Enhanced CSS for the header layout to improve UI alignment and spacing.
- Added new translation keys for pause and resume actions in the localization files.
…ewActions component

- Updated the OverviewActions component to accept actions as props, enabling pause and resume functionality for queues.
- Implemented pauseAll and resumeAll actions in the useQueues hook.
- Modified OverviewPage to pass the actions prop to OverviewActions, enhancing the user interface for queue management.
- Introduced `pauseAllHandler` and `resumeAllHandler` to handle pausing and resuming all queues.
- Updated `appRoutes` to include new API endpoints for pausing and resuming queues.
- Enhanced `useQueues` hook to integrate API calls for pausing and resuming queues with user confirmation.
- Added corresponding methods in the `Api` service for making requests to the new endpoints.
OverviewActions is renamed to OverviewDropDownActions
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.

1 participant