workhorse 0.6.8 → 0.6.9

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: 2eff126a2bb27e73361d725de644d3b5d134a341f7870ad95ff9176901611c21
4
- data.tar.gz: 272f2226c9ba56834ee8cb4f846312cbbfef95a0b7b1e3977b7a56721a983b00
3
+ metadata.gz: a328b92854a461c8b0e3a67f740b21581c9652b428286fa917c7942208d5ab83
4
+ data.tar.gz: 802d62becfdef759b6e1edad34eec6c5c606bf1de5a19ee75347149ccf6118f9
5
5
  SHA512:
6
- metadata.gz: f7bfd8088e0e263b843d2c6771087c1af14b19b9a3ce2ed4e86b4887ccb6b2447d502a3a015a8025592c1150861114aaccb25dbbca7586768b46acac27550ba1
7
- data.tar.gz: a66b004020194e2453bfb800a9b00fc66adf2e35a35fbdaf0a28e2d3f5379bc11e591ded60b84cb6c7498002fae3ea0bdc4e4b5f72478b133a35d7f2e4767854
6
+ metadata.gz: ac93faa479a9f4b228c75b41d7001eadf60a395986160d86342e7423a7e9712c9abeb7e4e69463eafa7d9b36647868ad123ca9efeb776ece3accf5d28d0ec889
7
+ data.tar.gz: c00ef0fc1c007f7a11ff208664c6c68653cd3cdf00f5750178f56484fb95721f0aaec095b0a4e8e091ecab7700bbbddaeeadbd1b9457c1fdd18882aa224737c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Workhorse Changelog
2
2
 
3
+ ## 0.6.9 - 2020-04-22
4
+
5
+ * Fix error where processes may have mistakenly been detected as running (add a
6
+ further improvement to the fix in 0.6.7).
7
+
3
8
  ## 0.6.8 - 2020-04-07
4
9
 
5
10
  * Fix bug introduced in 0.6.7 where all processes were detected as running
data/README.md CHANGED
@@ -365,6 +365,14 @@ To use workhorse as your ActiveJob backend, set the `queue_adapter` to
365
365
  configuration or else using `self.queue_adapter` in a job class inheriting from
366
366
  `ActiveJob`. See ActiveJob documentation for more details.
367
367
 
368
+ ## Cleaning up jobs
369
+
370
+ Per default, jobs remain in the database, no matter in which state. This can
371
+ eventually lead to a very large jobs database. You are advised to clean your
372
+ jobs database on a regular interval. Workhorse provides the job
373
+ `Workhose::Jobs::CleanupSucceededJobs` for this purpose that cleans up all
374
+ succeeded jobs. You can run this using your scheduler in a specific interval.
375
+
368
376
  ## Frequently asked questions
369
377
 
370
378
  Please consult the [FAQ](FAQ.md).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.8
1
+ 0.6.9
@@ -164,7 +164,7 @@ module Workhorse
164
164
  return begin
165
165
  Process.kill(0, pid)
166
166
  true
167
- rescue Errno::EPERM
167
+ rescue Errno::EPERM, Errno::ESRCH
168
168
  false
169
169
  end
170
170
  end
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 0.6.8 ruby lib
2
+ # stub: workhorse 0.6.9 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "0.6.8"
6
+ s.version = "0.6.9"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Sitrox".freeze]
11
- s.date = "2020-04-07"
11
+ s.date = "2020-04-22"
12
12
  s.files = [".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".travis.yml".freeze, "CHANGELOG.md".freeze, "FAQ.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "RUBY_VERSION".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/rubocop".freeze, "lib/active_job/queue_adapters/workhorse_adapter.rb".freeze, "lib/generators/workhorse/install_generator.rb".freeze, "lib/generators/workhorse/templates/bin/workhorse.rb".freeze, "lib/generators/workhorse/templates/config/initializers/workhorse.rb".freeze, "lib/generators/workhorse/templates/create_table_jobs.rb".freeze, "lib/workhorse.rb".freeze, "lib/workhorse/daemon.rb".freeze, "lib/workhorse/daemon/shell_handler.rb".freeze, "lib/workhorse/db_job.rb".freeze, "lib/workhorse/enqueuer.rb".freeze, "lib/workhorse/jobs/cleanup_succeeded_jobs.rb".freeze, "lib/workhorse/jobs/run_active_job.rb".freeze, "lib/workhorse/jobs/run_rails_op.rb".freeze, "lib/workhorse/performer.rb".freeze, "lib/workhorse/poller.rb".freeze, "lib/workhorse/pool.rb".freeze, "lib/workhorse/scoped_env.rb".freeze, "lib/workhorse/worker.rb".freeze, "test/active_job/queue_adapters/workhorse_adapter_test.rb".freeze, "test/lib/db_schema.rb".freeze, "test/lib/jobs.rb".freeze, "test/lib/test_helper.rb".freeze, "test/workhorse/db_job_test.rb".freeze, "test/workhorse/enqueuer_test.rb".freeze, "test/workhorse/performer_test.rb".freeze, "test/workhorse/poller_test.rb".freeze, "test/workhorse/pool_test.rb".freeze, "test/workhorse/worker_test.rb".freeze, "workhorse.gemspec".freeze]
13
13
  s.rubygems_version = "3.0.3".freeze
14
14
  s.summary = "Multi-threaded job backend with database queuing for ruby.".freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workhorse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler