sidekiq 5.0.0.beta2 → 5.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/issue_template.md +6 -1
- data/5.0-Upgrade.md +5 -2
- data/Changes.md +5 -1
- data/Ent-Changes.md +2 -1
- data/Pro-Changes.md +19 -0
- data/lib/sidekiq/api.rb +5 -4
- data/lib/sidekiq/job_logger.rb +8 -17
- data/lib/sidekiq/processor.rb +22 -20
- data/lib/sidekiq/testing.rb +6 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web/action.rb +0 -4
- data/lib/sidekiq/web/application.rb +6 -11
- data/lib/sidekiq/web/helpers.rb +9 -1
- data/web/assets/javascripts/dashboard.js +11 -13
- data/web/assets/stylesheets/application-rtl.css +246 -0
- data/web/assets/stylesheets/application.css +336 -4
- data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
- data/web/locales/ar.yml +80 -0
- data/web/locales/fa.yml +80 -0
- data/web/locales/he.yml +79 -0
- data/web/locales/ur.yml +80 -0
- data/web/views/_footer.erb +1 -1
- data/web/views/_job_info.erb +1 -1
- data/web/views/_nav.erb +1 -1
- data/web/views/_paging.erb +1 -1
- data/web/views/busy.erb +4 -4
- data/web/views/dashboard.erb +3 -3
- data/web/views/layout.erb +10 -1
- data/web/views/morgue.erb +6 -4
- data/web/views/queue.erb +1 -1
- data/web/views/retries.erb +5 -5
- data/web/views/scheduled.erb +2 -2
- metadata +8 -2
data/web/locales/he.yml
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
he:
|
2
|
+
TextDirection: 'rtl'
|
3
|
+
Dashboard: לוח מחוונים
|
4
|
+
Status: מצב
|
5
|
+
Time: שעה
|
6
|
+
Namespace: מרחב שם
|
7
|
+
Realtime: זמן אמת
|
8
|
+
History: היסטוריה
|
9
|
+
Busy: עסוקים
|
10
|
+
Processed: מעובדים
|
11
|
+
Failed: נכשלו
|
12
|
+
Scheduled: מתוכננים
|
13
|
+
Retries: נסיונות חוזרים
|
14
|
+
Enqueued: בתור
|
15
|
+
Worker: עובד
|
16
|
+
LivePoll: תשאול חי
|
17
|
+
StopPolling: עצור תשאול
|
18
|
+
Queue: תור
|
19
|
+
Class: מחלקה
|
20
|
+
Job: עבודה
|
21
|
+
Arguments: ארגומנטים
|
22
|
+
Extras: תוספות
|
23
|
+
Started: הותחלו
|
24
|
+
ShowAll: הצג את הכל
|
25
|
+
CurrentMessagesInQueue: עבודות נוכחיות בתור <span class='title'>%{queue}</span>
|
26
|
+
Delete: מחק
|
27
|
+
AddToQueue: הוסף לתור
|
28
|
+
AreYouSureDeleteJob: האם אתם בטוחים שברצונכם למחוק את העבודה הזאת?
|
29
|
+
AreYouSureDeleteQueue: האם אתם בטוחים שברצונכם למחוק את התור %{queue}?
|
30
|
+
Queues: תורים
|
31
|
+
Size: אורך
|
32
|
+
Actions: פעולות
|
33
|
+
NextRetry: ניסיון חוזר הבא
|
34
|
+
RetryCount: מספר נסיונות חוזרים
|
35
|
+
RetryNow: נסה שוב עכשיו
|
36
|
+
Kill: הרוג
|
37
|
+
LastRetry: ניסיון חוזר האחרון
|
38
|
+
OriginallyFailed: נכשל בניסיון הראשון
|
39
|
+
AreYouSure: אתם בטוחים?
|
40
|
+
DeleteAll: מחק הכל
|
41
|
+
RetryAll: נסה שוב את הכל
|
42
|
+
NoRetriesFound: לא נמצאו נסיונות חוזרים
|
43
|
+
Error: שגיאה
|
44
|
+
ErrorClass: מחלקת השגיאה
|
45
|
+
ErrorMessage: מסר השגיאה
|
46
|
+
ErrorBacktrace: מעקב לאחור של השגיאה
|
47
|
+
GoBack: ← אחורה
|
48
|
+
NoScheduledFound: לא נמצאו עבודות מתוכננות
|
49
|
+
When: מתי
|
50
|
+
ScheduledJobs: עבודות מתוכננות
|
51
|
+
idle: סרק
|
52
|
+
active: פעיל
|
53
|
+
Version: גירסה
|
54
|
+
Connections: קישורים
|
55
|
+
MemoryUsage: שימוש בזיכרון
|
56
|
+
PeakMemoryUsage: שיא השימוש בזיכרון
|
57
|
+
Uptime: זמן פעילות (ימים)
|
58
|
+
OneWeek: שבוע 1
|
59
|
+
OneMonth: חודש 1
|
60
|
+
ThreeMonths: 3 חדשים
|
61
|
+
SixMonths: 6 חדשים
|
62
|
+
Failures: כשלונות
|
63
|
+
DeadJobs: עבודות מתות
|
64
|
+
NoDeadJobsFound: לא נמצאו עבודות מתות
|
65
|
+
Dead: מתים
|
66
|
+
Processes: תהליכים
|
67
|
+
Thread: נים
|
68
|
+
Threads: נימים
|
69
|
+
Jobs: עבודות
|
70
|
+
Paused: נפסקים
|
71
|
+
Stop: עצור
|
72
|
+
Quiet: שקט
|
73
|
+
StopAll: עצור את כולם
|
74
|
+
QuietAll: השקט את כולם
|
75
|
+
PollingInterval: רווח בין תשאולים
|
76
|
+
Plugins: תוספים
|
77
|
+
NotYetEnqueued: עוד לא בתור
|
78
|
+
CreatedAt: נוצר ב
|
79
|
+
BackToApp: חזרה לאפליקציה
|
data/web/locales/ur.yml
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# elements like %{queue} are variables and should not be translated
|
2
|
+
ur:
|
3
|
+
TextDirection: 'rtl'
|
4
|
+
Dashboard: صفحۂ اول
|
5
|
+
Status: اسٹیٹس
|
6
|
+
Time: ﻭﻗﺖ
|
7
|
+
Namespace: Namespace
|
8
|
+
Realtime: ﺑﺮاﮦ ﺭاﺳﺖ
|
9
|
+
History: ﺗﺎﺭﻳﺦ
|
10
|
+
Busy: مصروف
|
11
|
+
Processed: مکمل شدہ
|
12
|
+
Failed: ﻧﺎکاﻡ ﺷﺪﮦ
|
13
|
+
Scheduled: ﻁےﺷﺪﮦ
|
14
|
+
Retries: ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ
|
15
|
+
Enqueued: قطار ميں شامل
|
16
|
+
Worker: ورکر
|
17
|
+
LivePoll: ﺑﺮاﮦ ﺭاﺳﺖ
|
18
|
+
StopPolling: ﺑﺮاﮦ ﺭاﺳﺖ روکيے
|
19
|
+
Queue: قطار
|
20
|
+
Class: کلاس
|
21
|
+
Job: جاب
|
22
|
+
Arguments: دلائل
|
23
|
+
Extras: اﺻﺎﻑی
|
24
|
+
Started: شروع
|
25
|
+
ShowAll: سارے دکھاو
|
26
|
+
CurrentMessagesInQueue: قطار ميں موجود تمام پيغامات <span class='title'>%{queue}</span>
|
27
|
+
AddToQueue: ﻗﻄﺎﺭ ميں شامل کريں
|
28
|
+
AreYouSureDeleteJob: کيا آپ یقین جاب حتم کرنا چاھتے ہيں ؟
|
29
|
+
AreYouSureDeleteQueue: کيا آپ یقین قطار حتم کرنا چاھتے ہيں ؟
|
30
|
+
Delete: ﺣﺬﻑ
|
31
|
+
Queues: قطاريں
|
32
|
+
Size: ﺣﺠﻢ
|
33
|
+
Actions: ﻋﻮاﻣﻞ
|
34
|
+
NextRetry: اگلی کﻭﺷﻴﺶ
|
35
|
+
RetryCount: دوبارہ کوشش کا مکمل شمار
|
36
|
+
RetryNow: ابھی دوبارہ کوشش
|
37
|
+
Kill: ختم کرديں
|
38
|
+
LastRetry: گزشتہ کوشش
|
39
|
+
OriginallyFailed: ابتادائ ناکامی
|
40
|
+
AreYouSure: کيا یقین ؟
|
41
|
+
DeleteAll: ﺗﻤﺎﻡ ﺣﺬﻑ کر ديں
|
42
|
+
RetryAll: ﺗﻤﺎﻡ کی ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ کﺭيں
|
43
|
+
NoRetriesFound: کویٔ ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ نھيں ملی
|
44
|
+
Error: مسئلہ
|
45
|
+
ErrorClass: مسئلہ کی کلاس
|
46
|
+
ErrorMessage: مسئلہ کی وجہ
|
47
|
+
ErrorBacktrace: مسئلہ کی کی تحقیقات کريں
|
48
|
+
GoBack: واپس جايں
|
49
|
+
NoScheduledFound: کویٔ ﻁےﺷﺪﮦچيز نہیں ملی
|
50
|
+
When: ﺏک
|
51
|
+
ScheduledJobs: ﻁےﺷﺪﮦجاب
|
52
|
+
idle: بیکار
|
53
|
+
active: فعال
|
54
|
+
Version: ورژن
|
55
|
+
Connections: کنکشنز
|
56
|
+
MemoryUsage: یاداشت کا استعمال
|
57
|
+
PeakMemoryUsage: سب سے زيادہ یاداشت کا استعمال
|
58
|
+
Uptime: اپ ٹائم
|
59
|
+
OneWeek: ایک ہفتہ
|
60
|
+
OneMonth: ایک مہینہ
|
61
|
+
ThreeMonths: تین ماہ
|
62
|
+
SixMonths: چھ ماہ
|
63
|
+
Failures: ناکامیاں
|
64
|
+
DeadJobs: ختم شدہ جاب
|
65
|
+
NoDeadJobsFound: کویٔ ختم شدہ جاب نہيی ملی
|
66
|
+
Dead: ختم شدہ
|
67
|
+
Processes: ﻋﻤﻠﻴﺎﺕ
|
68
|
+
Thread: موضوع
|
69
|
+
Threads: موضوع
|
70
|
+
Jobs: جابز
|
71
|
+
Paused: موقوف
|
72
|
+
Stop: بند کرو
|
73
|
+
Quiet: ﺣﺘﻢ کﺭﻭ
|
74
|
+
StopAll: ﺗﻤﺎﻡ ﺑﻨﺪ کﺭﻭ
|
75
|
+
QuietAll: ﺗﻤﺎﻡ ﺣﺘﻢ کﺭﻭ
|
76
|
+
PollingInterval: ﺑﺮاﮦ ﺭاﺳﺖ کا ﺩﻭﺭاﻧﻴﮧ
|
77
|
+
Plugins: پلگ انز
|
78
|
+
NotYetEnqueued: ﻗﺘﺎﺭميں شامل نھيں
|
79
|
+
CreatedAt: ﺗﺎﺭﻳﺢ آﻏﺎﺯ
|
80
|
+
BackToApp: ﻭاپﺱ صفحۂ اﻭﻝ پر
|
data/web/views/_footer.erb
CHANGED
data/web/views/_job_info.erb
CHANGED
data/web/views/_nav.erb
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
</ul>
|
54
54
|
<ul class="nav navbar-nav navbar-right navbar-livereload" data-navbar="static">
|
55
55
|
<li>
|
56
|
-
<div class="poll-wrapper
|
56
|
+
<div class="poll-wrapper">
|
57
57
|
<%= erb :_poll_link %>
|
58
58
|
<% if Sidekiq::Web.app_url %>
|
59
59
|
<a class="btn btn-inverse" href="<%= Sidekiq::Web.app_url %>"><%= t('BackToApp') %></a>
|
data/web/views/_paging.erb
CHANGED
data/web/views/busy.erb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="row header">
|
2
|
-
<div class="col-sm-8 pull-left">
|
2
|
+
<div class="col-sm-8 pull-left flip">
|
3
3
|
<h3><%= t('Processes') %></h3>
|
4
4
|
</div>
|
5
|
-
<div class="col-sm-4 pull-right">
|
5
|
+
<div class="col-sm-4 pull-right flip">
|
6
6
|
<form method="POST" class="warning-messages">
|
7
7
|
<%= csrf_tag %>
|
8
|
-
<div class="btn-group pull-right">
|
8
|
+
<div class="btn-group pull-right flip">
|
9
9
|
<button class="btn btn-warn" type="submit" name="quiet" value="1" data-confirm="<%= t('AreYouSure') %>"><%= t('QuietAll') %></button>
|
10
10
|
<button class="btn btn-danger" type="submit" name="stop" value="1" data-confirm="<%= t('AreYouSure') %>"><%= t('StopAll') %></button>
|
11
11
|
</div>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<td><%= process['concurrency'] %></td>
|
42
42
|
<td><%= process['busy'] %></td>
|
43
43
|
<td>
|
44
|
-
<div class="btn-group pull-right">
|
44
|
+
<div class="btn-group pull-right flip">
|
45
45
|
<form method="POST">
|
46
46
|
<%= csrf_tag %>
|
47
47
|
<input type="hidden" name="identity" value="<%= process['identity'] %>"/>
|
data/web/views/dashboard.erb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
<span class="dot"></span>
|
8
8
|
</span>
|
9
9
|
</h3>
|
10
|
-
<div class="interval-slider">
|
10
|
+
<div class="interval-slider ltr">
|
11
11
|
<span class="interval-slider-label"><%= t('PollingInterval') %>:</span>
|
12
|
-
<span class="current-interval">
|
12
|
+
<span class="current-interval">5 sec</span>
|
13
13
|
<br/>
|
14
|
-
<input type="range" min="2000" max="20000" step="1000" value="
|
14
|
+
<input type="range" min="2000" max="20000" step="1000" value="5000"/>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
|
data/web/views/layout.erb
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
<!doctype html>
|
2
|
-
<html>
|
2
|
+
<html dir="<%= text_direction %>">
|
3
3
|
<head>
|
4
4
|
<title><%= environment_title_prefix %><%= Sidekiq::NAME %></title>
|
5
5
|
<meta charset="utf8" />
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
7
|
+
|
7
8
|
<link href="<%= root_path %>stylesheets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
|
9
|
+
<% if rtl? %>
|
10
|
+
<link href="<%= root_path %>stylesheets/bootstrap-rtl.min.css" media="screen" rel="stylesheet" type="text/css"/>
|
11
|
+
<% end %>
|
12
|
+
|
8
13
|
<link href="<%= root_path %>stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
14
|
+
<% if rtl? %>
|
15
|
+
<link href="<%= root_path %>stylesheets/application-rtl.css" media="screen" rel="stylesheet" type="text/css" />
|
16
|
+
<% end %>
|
17
|
+
|
9
18
|
<link rel="shortcut icon" type="image/ico" href="<%= root_path %>images/favicon.ico" />
|
10
19
|
<script type="text/javascript" src="<%= root_path %>javascripts/application.js"></script>
|
11
20
|
<meta name="google" content="notranslate" />
|
data/web/views/morgue.erb
CHANGED
@@ -47,24 +47,26 @@
|
|
47
47
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
48
48
|
</td>
|
49
49
|
<td>
|
50
|
+
<% if entry.error? %>
|
50
51
|
<div><%= h truncate("#{entry['error_class']}: #{entry['error_message']}", 200) %></div>
|
52
|
+
<% end %>
|
51
53
|
</td>
|
52
54
|
</tr>
|
53
55
|
<% end %>
|
54
56
|
</table>
|
55
57
|
</div>
|
56
|
-
<input class="btn btn-primary btn-xs pull-left" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
57
|
-
<input class="btn btn-danger btn-xs pull-left" type="submit" name="delete" value="<%= t('Delete') %>" />
|
58
|
+
<input class="btn btn-primary btn-xs pull-left flip" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
59
|
+
<input class="btn btn-danger btn-xs pull-left flip" type="submit" name="delete" value="<%= t('Delete') %>" />
|
58
60
|
</form>
|
59
61
|
|
60
62
|
<% unfiltered? do %>
|
61
63
|
<form action="<%= root_path %>morgue/all/delete" method="post">
|
62
64
|
<%= csrf_tag %>
|
63
|
-
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
65
|
+
<input class="btn btn-danger btn-xs pull-right flip" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
64
66
|
</form>
|
65
67
|
<form action="<%= root_path %>morgue/all/retry" method="post">
|
66
68
|
<%= csrf_tag %>
|
67
|
-
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
69
|
+
<input class="btn btn-danger btn-xs pull-right flip" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
68
70
|
</form>
|
69
71
|
<% end %>
|
70
72
|
|
data/web/views/queue.erb
CHANGED
data/web/views/retries.erb
CHANGED
@@ -55,19 +55,19 @@
|
|
55
55
|
<% end %>
|
56
56
|
</table>
|
57
57
|
</div>
|
58
|
-
<input class="btn btn-primary btn-xs pull-left" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
59
|
-
<input class="btn btn-danger btn-xs pull-left" type="submit" name="delete" value="<%= t('Delete') %>" />
|
60
|
-
<input class="btn btn-danger btn-xs pull-left" type="submit" name="kill" value="<%= t('Kill') %>" />
|
58
|
+
<input class="btn btn-primary btn-xs pull-left flip" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
59
|
+
<input class="btn btn-danger btn-xs pull-left flip" type="submit" name="delete" value="<%= t('Delete') %>" />
|
60
|
+
<input class="btn btn-danger btn-xs pull-left flip" type="submit" name="kill" value="<%= t('Kill') %>" />
|
61
61
|
</form>
|
62
62
|
|
63
63
|
<% unfiltered? do %>
|
64
64
|
<form action="<%= root_path %>retries/all/delete" method="post">
|
65
65
|
<%= csrf_tag %>
|
66
|
-
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
66
|
+
<input class="btn btn-danger btn-xs pull-right flip" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
67
67
|
</form>
|
68
68
|
<form action="<%= root_path %>retries/all/retry" method="post">
|
69
69
|
<%= csrf_tag %>
|
70
|
-
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
70
|
+
<input class="btn btn-danger btn-xs pull-right flip" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
71
71
|
</form>
|
72
72
|
<% end %>
|
73
73
|
|
data/web/views/scheduled.erb
CHANGED
@@ -46,8 +46,8 @@
|
|
46
46
|
<% end %>
|
47
47
|
</table>
|
48
48
|
</div>
|
49
|
-
<input class="btn btn-danger pull-right" type="submit" name="delete" value="<%= t('Delete') %>" />
|
50
|
-
<input class="btn btn-danger pull-right" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
|
49
|
+
<input class="btn btn-danger pull-right flip" type="submit" name="delete" value="<%= t('Delete') %>" />
|
50
|
+
<input class="btn btn-danger pull-right flip" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
|
51
51
|
</form>
|
52
52
|
<% else %>
|
53
53
|
<div class="alert alert-success"><%= t('NoScheduledFound') %></div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -291,15 +291,20 @@ files:
|
|
291
291
|
- web/assets/images/status.png
|
292
292
|
- web/assets/javascripts/application.js
|
293
293
|
- web/assets/javascripts/dashboard.js
|
294
|
+
- web/assets/stylesheets/application-rtl.css
|
294
295
|
- web/assets/stylesheets/application.css
|
296
|
+
- web/assets/stylesheets/bootstrap-rtl.min.css
|
295
297
|
- web/assets/stylesheets/bootstrap.css
|
298
|
+
- web/locales/ar.yml
|
296
299
|
- web/locales/cs.yml
|
297
300
|
- web/locales/da.yml
|
298
301
|
- web/locales/de.yml
|
299
302
|
- web/locales/el.yml
|
300
303
|
- web/locales/en.yml
|
301
304
|
- web/locales/es.yml
|
305
|
+
- web/locales/fa.yml
|
302
306
|
- web/locales/fr.yml
|
307
|
+
- web/locales/he.yml
|
303
308
|
- web/locales/hi.yml
|
304
309
|
- web/locales/it.yml
|
305
310
|
- web/locales/ja.yml
|
@@ -313,6 +318,7 @@ files:
|
|
313
318
|
- web/locales/sv.yml
|
314
319
|
- web/locales/ta.yml
|
315
320
|
- web/locales/uk.yml
|
321
|
+
- web/locales/ur.yml
|
316
322
|
- web/locales/zh-cn.yml
|
317
323
|
- web/locales/zh-tw.yml
|
318
324
|
- web/views/_footer.erb
|