Class: Conflow::Redis::QueueJobsScript
- Defined in:
- lib/conflow/redis/queue_jobs_script.rb
Overview
Removes jobs from indegree set, adds them to queued list, and returns IDs of queued jobs.
Class Method Summary collapse
-
.call(flow) ⇒ Object
Call the script.
Methods inherited from Script
Class Method Details
.call(flow) ⇒ Object
Call the script. Script removes jobs which have score 0 in Flow’s indegree set and moves them to queued_jobs list.
25 26 27 |
# File 'lib/conflow/redis/queue_jobs_script.rb', line 25 def call(flow) super([flow.indegree.key, flow.queued_jobs.key]) end |