-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from doximity/jcw/fix_empty_toplevel_batch_bug
AT-172 Fix empty toplevel batch bug and add step batch description
- Loading branch information
Showing
4 changed files
with
68 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
# This job serves two purposes: | ||
# * TODO: It provides a convenient way to track top-level orchestration batches | ||
# * The top-level orchestration batch would otherwise be empty (aside from | ||
# child-batches) and all sidekiq-pro batches must have at least 1 job | ||
|
||
module Simplekiq | ||
class BatchTrackerJob | ||
include Sidekiq::Worker | ||
|
||
def perform(klass_name, bid, args) | ||
# In the future, this will likely surface the toplevel batch to a callback method on the | ||
# orchestration job. We're holding off on this until we have time to design a comprehensive | ||
# plan for providing simplekiq-wide instrumentation, ideally while being backwards compatible | ||
# for in-flight orchestrations. | ||
|
||
# For now, it's just satisfying the all-batches-must-have-jobs limitation in sidekiq-pro | ||
# described at the head of the file. | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters