Class: ParallelWorkforce::Job::ActiveJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ParallelWorkforce::Job::ActiveJob
- Includes:
- Util::JobHelper
- Defined in:
- lib/parallel_workforce/job/active_job.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Util::JobHelper
included, #invoke_performer, #invoke_performer_with_time_zone_name_and_locale
Class Method Details
.enqueue_actor(actor_class_name:, result_key:, index:, server_revision:, serialized_actor_args:) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/parallel_workforce/job/active_job.rb', line 9 def enqueue_actor(actor_class_name:, result_key:, index:, server_revision:, serialized_actor_args:) enqueue_actor_job( :perform_later, actor_class_name: actor_class_name, result_key: result_key, index: index, server_revision: server_revision, serialized_actor_args: serialized_actor_args, ) end |
Instance Method Details
#perform(args) ⇒ Object
21 22 23 |
# File 'lib/parallel_workforce/job/active_job.rb', line 21 def perform(args) invoke_performer(args) end |