Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marshal runner list so ActiveJob can handle it
- Loading branch information
Trey Terrell
committed
Jun 25, 2015
1 parent
ee5f83f
commit 4c4e174
Showing
4 changed files
with
11 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
class CreateDerivativesJob < ActiveJob::Base | ||
queue_as :low | ||
|
||
def perform(id, runner) | ||
def perform(id, runner_marshalled) | ||
asset = GenericAsset.find(id) | ||
runner = Marshal.load(runner_marshalled) | ||
runner.run(asset) | ||
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
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