1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/locales/en.yml
Shayon Mukherjee 0ddc6c9858 Introduce the ability to pause queue from the UI (#4374)
* Introduce the ability to pause queue from the UI

Considering sidekiq web UI allow to perform complex tasks with ease.
Having the ability to pause a queue during an emergency (or operational intense)
scenarios would come in quite handy.

This PR introduces a new button to under the "Actions" column on `sidekiq/queues` pages,
right next to the `Delete` button. Depending on the state of the queue, it will according
show the `Pause` or `Unpause` text, with appropriate form element that `POST`s to the same
endpoint. The endpoint logic is updated to handle the new cases. Added some relevant unit tests.

Adding mock `Sidekiq::Queue#pause!` and `Sidekiq::Queue#unpause!` functions to
the API, which I believe will be overridden by sidekiq pro.

* Remove confirmation text and switch ordering of new copy in en.yml

* Only allow pause/unpause operations from sidekiq pro

This means the button from UI is hidden and api route has validation
in place such that it will only perform the respective pause/unpause
operation on proper payload, in sidekiq pro.

Its using `Sidekiq::Pro` constant as a check to detect whether or
not pro is present.

* Initialize Queue only once in api router action
2019-11-14 10:06:53 -08:00

83 lines
2 KiB
YAML

# elements like %{queue} are variables and should not be translated
en: # <---- change this to your locale code
Dashboard: Dashboard
Status: Status
Time: Time
Namespace: Namespace
Realtime: Real-time
History: History
Busy: Busy
Processed: Processed
Failed: Failed
Scheduled: Scheduled
Retries: Retries
Enqueued: Enqueued
Worker: Worker
LivePoll: Live Poll
StopPolling: Stop Polling
Queue: Queue
Class: Class
Job: Job
Arguments: Arguments
Extras: Extras
Started: Started
ShowAll: Show All
CurrentMessagesInQueue: Current jobs in <span class='title'>%{queue}</span>
Delete: Delete
AddToQueue: Add to queue
AreYouSureDeleteJob: Are you sure you want to delete this job?
AreYouSureDeleteQueue: Are you sure you want to delete the %{queue} queue?
Queues: Queues
Size: Size
Actions: Actions
NextRetry: Next Retry
RetryCount: Retry Count
RetryNow: Retry Now
Kill: Kill
LastRetry: Last Retry
OriginallyFailed: Originally Failed
AreYouSure: Are you sure?
DeleteAll: Delete All
RetryAll: Retry All
KillAll: Kill All
NoRetriesFound: No retries were found
Error: Error
ErrorClass: Error Class
ErrorMessage: Error Message
ErrorBacktrace: Error Backtrace
GoBack: ← Back
NoScheduledFound: No scheduled jobs were found
When: When
ScheduledJobs: Scheduled Jobs
idle: idle
active: active
Version: Version
Connections: Connections
MemoryUsage: Memory Usage
PeakMemoryUsage: Peak Memory Usage
Uptime: Uptime (days)
OneWeek: 1 week
OneMonth: 1 month
ThreeMonths: 3 months
SixMonths: 6 months
Failures: Failures
DeadJobs: Dead Jobs
NoDeadJobsFound: No dead jobs were found
Dead: Dead
Processes: Processes
Thread: Thread
Threads: Threads
Jobs: Jobs
Paused: Paused
Stop: Stop
Quiet: Quiet
StopAll: Stop All
QuietAll: Quiet All
PollingInterval: Polling interval
Plugins: Plugins
NotYetEnqueued: Not yet enqueued
CreatedAt: Created At
BackToApp: Back to App
Latency: Latency
Pause: Pause
Unpause: Unpause