mastiff 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 942869f116aed0a656e8ef35f053491096b4f1e6
|
4
|
+
data.tar.gz: ffc8ce8e208991ad2a9e0ab8ece9dd90b517ec6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5ba979954f9e8dc600866892f08812e2941c62ea7e3609c068e1ed0a347ee1fdebcaf8704881c783f7780efc311dc1ad74cd6bb74559439b14643a37aff7355
|
7
|
+
data.tar.gz: dfdab6b3f03522159519630bc82c281d7680b46eafc3fba572373a28f91dba41bb3ad69707b82a8532507b72d8da01a16b16676bdfec31782f6542955156b5ca
|
@@ -3,11 +3,9 @@ require 'sidekiq-lock'
|
|
3
3
|
class SyncMailWorker
|
4
4
|
include Sidekiq::Worker
|
5
5
|
include Sidekiq::Lock::Worker
|
6
|
-
include Sidetiq::Schedulable
|
7
6
|
sidekiq_options :queue => :email_queue, :retry => false, :backtrace => true
|
8
7
|
sidekiq_options lock: { timeout: 120000, name: 'lock-mail-worker' }
|
9
8
|
|
10
|
-
recurrence { minutely }
|
11
9
|
|
12
10
|
def perform
|
13
11
|
if lock.acquire!
|
@@ -19,4 +17,5 @@ class SyncMailWorker
|
|
19
17
|
end
|
20
18
|
end
|
21
19
|
|
22
|
-
end
|
20
|
+
end
|
21
|
+
Sidekiq::Cron::Job.create(name: 'SyncMailWorker', cron: '*/10 * * * *', klass: 'SyncMailWorker')
|
data/lib/mastiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashley Raiteri
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: 3.5.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
110
|
+
version: 3.5.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: sidekiq-cron
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.3.1
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.3.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: sidekiq-lock
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|