resque-job_history 0.0.19 → 0.0.20

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
  SHA256:
3
- metadata.gz: 80f12f012c42ce5ef6d0752d9577bab10c136e23092b993fa8ed7956a6fe14f9
4
- data.tar.gz: 6402151b24dd3ed4977c5dc84b6961183b0325565c6311160d47d614d6ac77bf
3
+ metadata.gz: 74efd65b38f6d08e25d24bce58b4fafa97e3136df8c0cef2b10177af4f85f17d
4
+ data.tar.gz: 96e82ad40c7bd5d0371e6dc975296235e04a2e71eec4cb0646bd1f876f7cc24d
5
5
  SHA512:
6
- metadata.gz: 8a8a66dd34b106ff998329a8d9d97c49049e9bae75b0fe3f7e378d6758d9f62645e0b0613933868fc97f591dfbdd607c7865f9ab94cc013d7f76f9a64de07f0e
7
- data.tar.gz: b8c3c45e954382aa89d9e8533da10647df5d5e47e9d09cf50cc9bc42b2390d30feb72a8dd385a454e4a319906bed65f6353ce8316f97a5a80bb02d0f4fc59d87
6
+ metadata.gz: 82be65f4e0c8e1dbe91b237b135f1cd375c22240849cc16a549cde3481681106a126988af8c4674c6c834efa139ca48193ab0240603a1eb89a84f4d66965aaaa
7
+ data.tar.gz: 2de10d9d4f626e8d1ae32e1a3d4f589290badcf71979c846d353ab4b4eac7ecc183d8ebf0c97e750f85e15b95185c876f92738487aa22d3e46bd328435eedae4
@@ -51,8 +51,7 @@ module Resque
51
51
  end
52
52
 
53
53
  def around_perform_job_history(*args)
54
- running_job = Resque::Plugins::JobHistory::Job.new(active_job_class_name(*args),
55
- SecureRandom.uuid)
54
+ running_job = Resque::Plugins::JobHistory::Job.new(active_job_class_name(*args), SecureRandom.uuid)
56
55
  self.most_recent_job = running_job
57
56
 
58
57
  begin
@@ -68,8 +68,7 @@ module Resque
68
68
  end
69
69
 
70
70
  def linear_jobs
71
- @linear_list ||= HistoryList.new("", "linear",
72
- Resque::Plugins::JobHistory::HistoryDetails.max_linear_jobs)
71
+ @linear_list ||= HistoryList.new("", "linear", Resque::Plugins::JobHistory::HistoryDetails.max_linear_jobs)
73
72
  end
74
73
 
75
74
  def max_concurrent_jobs
@@ -111,7 +110,6 @@ module Resque
111
110
  job_start = job.start_time
112
111
 
113
112
  if job_start.blank? || job_start.to_time < too_old_time
114
- job.start(*job.args) if job_start.blank?
115
113
  job.cancel
116
114
  end
117
115
  end
@@ -57,10 +57,11 @@ module Resque
57
57
  end
58
58
 
59
59
  def start(*args)
60
+ record_job_start(*args)
61
+
60
62
  num_jobs = running_jobs.add_job(job_id, class_name)
61
63
  linear_jobs.add_job(job_id, class_name) unless class_exclude_from_linear_history
62
64
 
63
- record_job_start(*args)
64
65
  record_num_jobs(num_jobs)
65
66
 
66
67
  self
@@ -143,11 +144,7 @@ module Resque
143
144
  end
144
145
 
145
146
  def stored_values
146
- unless @stored_values
147
- @stored_values = redis.hgetall(job_key).with_indifferent_access
148
- end
149
-
150
- @stored_values
147
+ @stored_values ||= redis.hgetall(job_key).with_indifferent_access
151
148
  end
152
149
 
153
150
  def encode_args(*args)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-job_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - RealNobody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-11 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
@@ -280,7 +280,7 @@ files:
280
280
  - lib/resque/server/views/linear_history.erb
281
281
  - lib/resque/server/views/search_results.erb
282
282
  - lib/tasks/resque-job_history_tasks.rake
283
- homepage: https://github.com/RealNobody
283
+ homepage: https://github.com/RealNobody/resque-job_history
284
284
  licenses:
285
285
  - MIT
286
286
  metadata: {}