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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: da067ee0d2ec947e25ae05f9ee33524d9ca3ebb9d7061b6ee5f16c9101351b50
4
- data.tar.gz: c69b06a3d6df2f9703fffbc83ba224eaa65381a5243f6be55afecbfa17d70eea
2
+ SHA1:
3
+ metadata.gz: 0f80efdc929cecb5ef874d86109e6858c1414c7c
4
+ data.tar.gz: 0c563d9994ff8f85f8ebd72b7f4e60e38e2d8b0a
5
5
  SHA512:
6
- metadata.gz: 3ae9dce2bd8ca944d8ad43a757b5826c2b4d6024e3f89faa3c75c3e3ed1b891fb99c7c6cddf7e5b5f835d042300e20c1c14371c74aae3d155ecd413cf239109c
7
- data.tar.gz: 8ebc99e9d492bb793e6dbe769f0371cf6308ee397bb55a0983db225fa41ef38f5ac20f19d9e46cd5583ce628b1e7241a2c650316fadd7d5493a5f016a2d958ef
6
+ metadata.gz: 81cff020b70c213e91b86e7af8df01e57cd67aa0837675cce4aa5664d7a6109cf706cfba8cfb420443bcec2caf0092fae3bdb308b9bf95e88ad9357168c736e4
7
+ data.tar.gz: 98516a25aec89f676e945d2be722965566ba6a7be85dba600a272235e126f632e9918cbcbd43513196f7bd4bc5b4e4d2f651003801b0fe7e66df1681ba1cc3b9
@@ -1,3 +1,8 @@
1
+ 4.1.6 - In Progress
2
+ =================
3
+ * Allow Rails 6.0
4
+ * Update failed message to be more clear
5
+
1
6
  4.1.5 - 2018-04-13
2
7
  =================
3
8
  * Allow Rails 5.2
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.png)][gem]
9
- [![Build Status](https://travis-ci.org/collectiveidea/delayed_job.png?branch=master)][travis]
10
- [![Dependency Status](https://gemnasium.com/collectiveidea/delayed_job.png?travis)][gemnasium]
11
- [![Code Climate](https://codeclimate.com/github/collectiveidea/delayed_job.png)][codeclimate]
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, see [below](#rails-42)
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
- Rails 4.2
73
- =========
74
- Set the queue_adapter in config/application.rb
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
@@ -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', '< 5.3']
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.5'
16
+ spec.version = '4.1.6.beta1'
17
17
  end
@@ -133,7 +133,8 @@ module Delayed
133
133
  end
134
134
 
135
135
  def fail!
136
- update_attributes(:failed_at => self.class.db_time_now)
136
+ self.failed_at = self.class.db_time_now
137
+ save!
137
138
  end
138
139
 
139
140
  protected
@@ -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.update_attributes :text => 'goodbye'
526
+ story.text = 'goodbye'
527
+ story.save!
527
528
  expect(job.reload.payload_object.object.text).to eq('goodbye')
528
529
  end
529
530
 
@@ -251,7 +251,7 @@ module Delayed
251
251
  job.unlock
252
252
  job.save!
253
253
  else
254
- job_say job, "REMOVED permanently because of #{job.attempts} consecutive failures", 'error'
254
+ job_say job, "FAILED permanently because of #{job.attempts} consecutive failures", 'error'
255
255
  failed(job)
256
256
  end
257
257
  end
@@ -87,11 +87,6 @@ module Delayed
87
87
  Time.current
88
88
  end
89
89
 
90
- def update_attributes(attrs = {})
91
- attrs.each { |k, v| send(:"#{k}=", v) }
92
- save
93
- end
94
-
95
90
  def destroy
96
91
  self.class.all.delete(self)
97
92
  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.5
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: 2018-04-13 00:00:00.000000000 Z
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: '5.3'
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: '5.3'
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: '0'
119
+ version: 1.3.1
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.7.6
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