sidekiq-cron-tasks 0.2.0 → 0.3.0
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: 3bff8d9c971caf0970d2e2d3badc4fac9a11fe54
|
4
|
+
data.tar.gz: b967dd1fd477f69926927ab6bbfe18261ed4116e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d526d3e7efe74f58852a1b15e648afa76c5561270a25f57839969be371c97a28e09f49af4b430731503b21780a21e84db02f40f305efa7c9bf1609239a91b311
|
7
|
+
data.tar.gz: 07d9cfa9f6fb35a9e88ee218e2838157a74581e6fd66ffa5edbbb64ccc1ebcc104e78e7cf3a583a52624b0607db663e9ab8f0fbb8b999294327f382a31fab22b
|
data/README.md
CHANGED
@@ -12,6 +12,18 @@ namespace :deploy do
|
|
12
12
|
after "deploy:updated", "deploy:sidekiq_cron"
|
13
13
|
end
|
14
14
|
|
15
|
+
namespace :sidekiq_cron do
|
16
|
+
task clear: [:set_rails_env] do
|
17
|
+
on fetch(:sidekiq_cron_servers) do
|
18
|
+
within release_path do
|
19
|
+
with rails_env: fetch(:rails_env) do
|
20
|
+
execute :rake, "sidekiq_cron:clear"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
15
27
|
namespace :load do
|
16
28
|
task :defaults do
|
17
29
|
set :sidekiq_cron_role, fetch(:sidekiq_cron_role, :app)
|
@@ -10,7 +10,13 @@ namespace :sidekiq_cron do
|
|
10
10
|
new_hash[prefixed_name] = options
|
11
11
|
end
|
12
12
|
|
13
|
-
|
13
|
+
Rake::Task['sidekiq_cron:clear'].invoke
|
14
14
|
Sidekiq::Cron::Job.load_from_hash prefixed_hash
|
15
15
|
end
|
16
|
+
|
17
|
+
desc "Clear Sidekiq Cron entries"
|
18
|
+
task clear: :environment do
|
19
|
+
prefix = Sidekiq::Cron::Tasks.config.prefix
|
20
|
+
Sidekiq::Cron::Job.all.select { |job| job.name =~ /\A#{prefix} / }.each(&:destroy)
|
21
|
+
end
|
16
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-cron-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernardo Farah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -103,7 +103,7 @@ files:
|
|
103
103
|
- lib/sidekiq/cron/tasks/railtie.rb
|
104
104
|
- lib/sidekiq/cron/tasks/version.rb
|
105
105
|
- lib/sidekiq_cron_tasks.rb
|
106
|
-
- lib/tasks/sidekiq_cron/
|
106
|
+
- lib/tasks/sidekiq_cron/tasks.rake
|
107
107
|
homepage: https://github.com/coverhound/sidekiq-cron-tasks
|
108
108
|
licenses:
|
109
109
|
- MIT
|