delayed_job 4.1.5 → 4.1.6.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +9 -11
- data/delayed_job.gemspec +2 -2
- data/lib/delayed/backend/base.rb +2 -1
- data/lib/delayed/backend/shared_spec.rb +2 -1
- data/lib/delayed/worker.rb +1 -1
- data/spec/delayed/backend/test.rb +0 -5
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0f80efdc929cecb5ef874d86109e6858c1414c7c
|
4
|
+
data.tar.gz: 0c563d9994ff8f85f8ebd72b7f4e60e38e2d8b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81cff020b70c213e91b86e7af8df01e57cd67aa0837675cce4aa5664d7a6109cf706cfba8cfb420443bcec2caf0092fae3bdb308b9bf95e88ad9357168c736e4
|
7
|
+
data.tar.gz: 98516a25aec89f676e945d2be722965566ba6a7be85dba600a272235e126f632e9918cbcbd43513196f7bd4bc5b4e4d2f651003801b0fe7e66df1681ba1cc3b9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -5,15 +5,13 @@ you're reading the documentation for the master branch.
|
|
5
5
|
|
6
6
|
Delayed::Job
|
7
7
|
============
|
8
|
-
[![Gem Version](https://badge.fury.io/rb/delayed_job.
|
9
|
-
[![Build Status](https://travis-ci.org/collectiveidea/delayed_job.
|
10
|
-
[![
|
11
|
-
[![
|
12
|
-
[![Coverage Status](https://coveralls.io/repos/collectiveidea/delayed_job/badge.png?branch=master)][coveralls]
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/delayed_job.svg)][gem]
|
9
|
+
[![Build Status](https://travis-ci.org/collectiveidea/delayed_job.svg?branch=master)][travis]
|
10
|
+
[![Code Climate](https://codeclimate.com/github/collectiveidea/delayed_job.svg)][codeclimate]
|
11
|
+
[![Coverage Status](https://coveralls.io/repos/collectiveidea/delayed_job/badge.svg?branch=master)][coveralls]
|
13
12
|
|
14
13
|
[gem]: https://rubygems.org/gems/delayed_job
|
15
14
|
[travis]: https://travis-ci.org/collectiveidea/delayed_job
|
16
|
-
[gemnasium]: https://gemnasium.com/collectiveidea/delayed_job
|
17
15
|
[codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job
|
18
16
|
[coveralls]: https://coveralls.io/r/collectiveidea/delayed_job
|
19
17
|
|
@@ -62,16 +60,16 @@ running the following command:
|
|
62
60
|
rails generate delayed_job:active_record
|
63
61
|
rake db:migrate
|
64
62
|
|
65
|
-
For Rails 4.2
|
63
|
+
For Rails 4.2+, see [below](#active-job)
|
66
64
|
|
67
65
|
Development
|
68
66
|
===========
|
69
67
|
In development mode, if you are using Rails 3.1+, your application code will automatically reload every 100 jobs or when the queue finishes.
|
70
68
|
You no longer need to restart Delayed Job every time you update your code in development.
|
71
69
|
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
Active Job
|
71
|
+
==========
|
72
|
+
In Rails 4.2+, set the queue_adapter in config/application.rb
|
75
73
|
|
76
74
|
```ruby
|
77
75
|
config.active_job.queue_adapter = :delayed_job
|
@@ -430,7 +428,7 @@ end
|
|
430
428
|
|
431
429
|
On error, the job is scheduled again in 5 seconds + N ** 4, where N is the number of attempts or using the job's defined `reschedule_at` method.
|
432
430
|
|
433
|
-
The default `Worker.max_attempts` is 25. After this, the job either deleted (default), or left in the database with "failed_at" set.
|
431
|
+
The default `Worker.max_attempts` is 25. After this, the job is either deleted (default), or left in the database with "failed_at" set.
|
434
432
|
With the default of 25 attempts, the last retry will be 20 days later, with the last interval being almost 100 hours.
|
435
433
|
|
436
434
|
The default `Worker.max_run_time` is 4.hours. If your job takes longer than that, another computer could pick it up. It's up to you to
|
data/delayed_job.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.add_dependency 'activesupport', ['>= 3.0', '<
|
4
|
+
spec.add_dependency 'activesupport', ['>= 3.0', '< 6.1']
|
5
5
|
spec.authors = ['Brandon Keepers', 'Brian Ryckbost', 'Chris Gaffney', 'David Genord II', 'Erik Michaels-Ober', 'Matt Griffin', 'Steve Richert', 'Tobias Lütke']
|
6
6
|
spec.description = 'Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.'
|
7
7
|
spec.email = ['brian@collectiveidea.com']
|
@@ -13,5 +13,5 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.require_paths = ['lib']
|
14
14
|
spec.summary = 'Database-backed asynchronous priority queue system -- Extracted from Shopify'
|
15
15
|
spec.test_files = Dir.glob('spec/**/*')
|
16
|
-
spec.version = '4.1.
|
16
|
+
spec.version = '4.1.6.beta1'
|
17
17
|
end
|
data/lib/delayed/backend/base.rb
CHANGED
@@ -523,7 +523,8 @@ shared_examples_for 'a delayed_job backend' do
|
|
523
523
|
it 'reloads changed attributes' do
|
524
524
|
story = Story.create(:text => 'hello')
|
525
525
|
job = story.delay.tell
|
526
|
-
story.
|
526
|
+
story.text = 'goodbye'
|
527
|
+
story.save!
|
527
528
|
expect(job.reload.payload_object.object.text).to eq('goodbye')
|
528
529
|
end
|
529
530
|
|
data/lib/delayed/worker.rb
CHANGED
@@ -251,7 +251,7 @@ module Delayed
|
|
251
251
|
job.unlock
|
252
252
|
job.save!
|
253
253
|
else
|
254
|
-
job_say job, "
|
254
|
+
job_say job, "FAILED permanently because of #{job.attempts} consecutive failures", 'error'
|
255
255
|
failed(job)
|
256
256
|
end
|
257
257
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.6.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Keepers
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date:
|
18
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: '3.0'
|
27
27
|
- - "<"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.1'
|
30
30
|
type: :runtime
|
31
31
|
prerelease: false
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
version: '3.0'
|
37
37
|
- - "<"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '6.1'
|
40
40
|
description: Delayed_job (or DJ) encapsulates the common pattern of asynchronously
|
41
41
|
executing longer tasks in the background. It is a direct extraction from Shopify
|
42
42
|
where the job table is responsible for a multitude of core tasks.
|
@@ -114,12 +114,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - "
|
117
|
+
- - ">"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: 1.3.1
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.6.14
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
|