Skip to content

Commit

Permalink
Stale to Stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
gremerritt committed Sep 20, 2023
1 parent c8dd6c0 commit 8350ac9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

### 0.9.0
- Add a `CompleteStaleJobGroupsJob`, which can be run periodically to close "stuck" job groups
- Add a `CompleteStuckJobGroupsJob`, which can be run periodically to close "stuck" job groups

### 0.8.0
- Drop support for ruby < 2.7
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ As a remedy for the above scenario, a job is provided which cleans up any job gr
run this job periodically (for example in a cron job), especially in high-thoughput applications.

```ruby
Delayed::JobGroups::CompleteStaleJobGroupsJob.enqueue
Delayed::JobGroups::CompleteStuckJobGroupsJob.enqueue
```

## Supported Platforms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Delayed
module JobGroups
class CompleteStaleJobGroupsJob
class CompleteStuckJobGroupsJob
if defined?(Delayed::Extensions::SystemJobWithoutSecurityContext)
include Delayed::Extensions::SystemJobWithoutSecurityContext
end
Expand Down
2 changes: 1 addition & 1 deletion lib/delayed_job_groups_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'delayed_job'
require 'delayed_job_active_record'
require 'delayed/job_groups/compatibility'
require 'delayed/job_groups/complete_stale_job_groups_job'
require 'delayed/job_groups/complete_stuck_job_groups_job'
require 'delayed/job_groups/job_extensions'
require 'delayed/job_groups/job_group'
require 'delayed/job_groups/plugin'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

describe Delayed::JobGroups::CompleteStaleJobGroupsJob do
describe Delayed::JobGroups::CompleteStuckJobGroupsJob do
describe "#perform" do
let(:job) { described_class.new }

Expand Down

0 comments on commit 8350ac9

Please sign in to comment.