reqless 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/README.md +648 -0
  4. data/Rakefile +117 -0
  5. data/bin/docker-build-and-test +22 -0
  6. data/exe/reqless-web +11 -0
  7. data/lib/reqless/config.rb +31 -0
  8. data/lib/reqless/failure_formatter.rb +43 -0
  9. data/lib/reqless/job.rb +496 -0
  10. data/lib/reqless/job_reservers/ordered.rb +29 -0
  11. data/lib/reqless/job_reservers/round_robin.rb +46 -0
  12. data/lib/reqless/job_reservers/shuffled_round_robin.rb +21 -0
  13. data/lib/reqless/lua/reqless-lib.lua +2965 -0
  14. data/lib/reqless/lua/reqless.lua +2545 -0
  15. data/lib/reqless/lua_script.rb +90 -0
  16. data/lib/reqless/middleware/requeue_exceptions.rb +94 -0
  17. data/lib/reqless/middleware/retry_exceptions.rb +72 -0
  18. data/lib/reqless/middleware/sentry.rb +66 -0
  19. data/lib/reqless/middleware/timeout.rb +63 -0
  20. data/lib/reqless/queue.rb +189 -0
  21. data/lib/reqless/queue_priority_pattern.rb +16 -0
  22. data/lib/reqless/server/static/css/bootstrap-responsive.css +686 -0
  23. data/lib/reqless/server/static/css/bootstrap-responsive.min.css +12 -0
  24. data/lib/reqless/server/static/css/bootstrap.css +3991 -0
  25. data/lib/reqless/server/static/css/bootstrap.min.css +689 -0
  26. data/lib/reqless/server/static/css/codemirror.css +112 -0
  27. data/lib/reqless/server/static/css/docs.css +839 -0
  28. data/lib/reqless/server/static/css/jquery.noty.css +105 -0
  29. data/lib/reqless/server/static/css/noty_theme_twitter.css +137 -0
  30. data/lib/reqless/server/static/css/style.css +200 -0
  31. data/lib/reqless/server/static/favicon.ico +0 -0
  32. data/lib/reqless/server/static/img/glyphicons-halflings-white.png +0 -0
  33. data/lib/reqless/server/static/img/glyphicons-halflings.png +0 -0
  34. data/lib/reqless/server/static/js/bootstrap-alert.js +94 -0
  35. data/lib/reqless/server/static/js/bootstrap-scrollspy.js +125 -0
  36. data/lib/reqless/server/static/js/bootstrap-tab.js +130 -0
  37. data/lib/reqless/server/static/js/bootstrap-tooltip.js +270 -0
  38. data/lib/reqless/server/static/js/bootstrap-typeahead.js +285 -0
  39. data/lib/reqless/server/static/js/bootstrap.js +1726 -0
  40. data/lib/reqless/server/static/js/bootstrap.min.js +6 -0
  41. data/lib/reqless/server/static/js/codemirror.js +2972 -0
  42. data/lib/reqless/server/static/js/jquery.noty.js +220 -0
  43. data/lib/reqless/server/static/js/mode/javascript.js +360 -0
  44. data/lib/reqless/server/static/js/theme/cobalt.css +18 -0
  45. data/lib/reqless/server/static/js/theme/eclipse.css +25 -0
  46. data/lib/reqless/server/static/js/theme/elegant.css +10 -0
  47. data/lib/reqless/server/static/js/theme/lesser-dark.css +45 -0
  48. data/lib/reqless/server/static/js/theme/monokai.css +28 -0
  49. data/lib/reqless/server/static/js/theme/neat.css +9 -0
  50. data/lib/reqless/server/static/js/theme/night.css +21 -0
  51. data/lib/reqless/server/static/js/theme/rubyblue.css +21 -0
  52. data/lib/reqless/server/static/js/theme/xq-dark.css +46 -0
  53. data/lib/reqless/server/views/_job.erb +259 -0
  54. data/lib/reqless/server/views/_job_list.erb +8 -0
  55. data/lib/reqless/server/views/_pagination.erb +7 -0
  56. data/lib/reqless/server/views/about.erb +130 -0
  57. data/lib/reqless/server/views/completed.erb +11 -0
  58. data/lib/reqless/server/views/config.erb +14 -0
  59. data/lib/reqless/server/views/failed.erb +48 -0
  60. data/lib/reqless/server/views/failed_type.erb +18 -0
  61. data/lib/reqless/server/views/job.erb +17 -0
  62. data/lib/reqless/server/views/layout.erb +451 -0
  63. data/lib/reqless/server/views/overview.erb +137 -0
  64. data/lib/reqless/server/views/queue.erb +125 -0
  65. data/lib/reqless/server/views/queues.erb +45 -0
  66. data/lib/reqless/server/views/tag.erb +6 -0
  67. data/lib/reqless/server/views/throttles.erb +38 -0
  68. data/lib/reqless/server/views/track.erb +75 -0
  69. data/lib/reqless/server/views/worker.erb +34 -0
  70. data/lib/reqless/server/views/workers.erb +14 -0
  71. data/lib/reqless/server.rb +549 -0
  72. data/lib/reqless/subscriber.rb +74 -0
  73. data/lib/reqless/test_helpers/worker_helpers.rb +55 -0
  74. data/lib/reqless/throttle.rb +57 -0
  75. data/lib/reqless/version.rb +5 -0
  76. data/lib/reqless/worker/base.rb +237 -0
  77. data/lib/reqless/worker/forking.rb +215 -0
  78. data/lib/reqless/worker/serial.rb +41 -0
  79. data/lib/reqless/worker.rb +5 -0
  80. data/lib/reqless.rb +309 -0
  81. metadata +399 -0
@@ -0,0 +1,112 @@
1
+ .CodeMirror {
2
+ line-height: 1em;
3
+ font-family: monospace;
4
+ }
5
+
6
+ .CodeMirror-scroll {
7
+ overflow: auto;
8
+ height: 300px;
9
+ /* This is needed to prevent an IE[67] bug where the scrolled content
10
+ is visible outside of the scrolling box. */
11
+ position: relative;
12
+ outline: none;
13
+ }
14
+
15
+ .CodeMirror-gutter {
16
+ position: absolute; left: 0; top: 0;
17
+ z-index: 10;
18
+ background-color: #f7f7f7;
19
+ border-right: 1px solid #eee;
20
+ min-width: 2em;
21
+ height: 100%;
22
+ }
23
+ .CodeMirror-gutter-text {
24
+ color: #aaa;
25
+ text-align: right;
26
+ padding: .4em .2em .4em .4em;
27
+ white-space: pre !important;
28
+ }
29
+ .CodeMirror-lines {
30
+ padding: .4em;
31
+ white-space: pre;
32
+ }
33
+
34
+ .CodeMirror pre {
35
+ -moz-border-radius: 0;
36
+ -webkit-border-radius: 0;
37
+ -o-border-radius: 0;
38
+ border-radius: 0;
39
+ border-width: 0; margin: 0; padding: 0; background: transparent;
40
+ font-family: inherit;
41
+ font-size: inherit;
42
+ padding: 0; margin: 0;
43
+ white-space: pre;
44
+ word-wrap: normal;
45
+ }
46
+
47
+ .CodeMirror-wrap pre {
48
+ word-wrap: break-word;
49
+ white-space: pre-wrap;
50
+ }
51
+ .CodeMirror-wrap .CodeMirror-scroll {
52
+ overflow-x: hidden;
53
+ }
54
+
55
+ .CodeMirror textarea {
56
+ outline: none !important;
57
+ }
58
+
59
+ .CodeMirror pre.CodeMirror-cursor {
60
+ z-index: 10;
61
+ position: absolute;
62
+ visibility: hidden;
63
+ border-left: 1px solid black;
64
+ border-right:none;
65
+ width:0;
66
+ }
67
+ .CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
68
+ .CodeMirror-focused pre.CodeMirror-cursor {
69
+ visibility: visible;
70
+ }
71
+
72
+ div.CodeMirror-selected { background: #d9d9d9; }
73
+ .CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
74
+
75
+ .CodeMirror-searching {
76
+ background: #ffa;
77
+ background: rgba(255, 255, 0, .4);
78
+ }
79
+
80
+ /* Default theme */
81
+
82
+ .cm-s-default span.cm-keyword {color: #708;}
83
+ .cm-s-default span.cm-atom {color: #219;}
84
+ .cm-s-default span.cm-number {color: #164;}
85
+ .cm-s-default span.cm-def {color: #00f;}
86
+ .cm-s-default span.cm-variable {color: black;}
87
+ .cm-s-default span.cm-variable-2 {color: #05a;}
88
+ .cm-s-default span.cm-variable-3 {color: #085;}
89
+ .cm-s-default span.cm-property {color: black;}
90
+ .cm-s-default span.cm-operator {color: black;}
91
+ .cm-s-default span.cm-comment {color: #a50;}
92
+ .cm-s-default span.cm-string {color: #a11;}
93
+ .cm-s-default span.cm-string-2 {color: #f50;}
94
+ .cm-s-default span.cm-meta {color: #555;}
95
+ .cm-s-default span.cm-error {color: #f00;}
96
+ .cm-s-default span.cm-qualifier {color: #555;}
97
+ .cm-s-default span.cm-builtin {color: #30a;}
98
+ .cm-s-default span.cm-bracket {color: #cc7;}
99
+ .cm-s-default span.cm-tag {color: #170;}
100
+ .cm-s-default span.cm-attribute {color: #00c;}
101
+ .cm-s-default span.cm-header {color: #a0a;}
102
+ .cm-s-default span.cm-quote {color: #090;}
103
+ .cm-s-default span.cm-hr {color: #999;}
104
+ .cm-s-default span.cm-link {color: #00c;}
105
+
106
+ span.cm-header, span.cm-strong {font-weight: bold;}
107
+ span.cm-em {font-style: italic;}
108
+ span.cm-emstrong {font-style: italic; font-weight: bold;}
109
+ span.cm-link {text-decoration: underline;}
110
+
111
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
112
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}