JoobQ::Queue(T)
Inherits JoobQ::BaseQueue / Reference / Object
The Queue class now focuses solely on queue operations
Constructors
new(name : String, total_workers : Int32, throttle_limit : NamedTuple(limit: Int32, period: Time::Span) | Nil = nil)
SourceInstance methods
add(job : String)
Sourceadd(job : T)
Sourceclaim_job(worker_id : String) : String | Nil
Sourceclaim_jobs_batch(worker_id : String, batch_size : Int32 = 5) : Array(String)
Sourcecleanup_completed_job_pipelined(worker_id : String, job_json : String) : Nil
Enhanced cleanup for successfully completed jobs IMPORTANT: job_json must be the FULL job JSON string, not just the job ID
cleanup_job_processing_pipelined(worker_id : String, job_json : String) : Nil
Pipelined job cleanup for improved performance IMPORTANT: job_json must be the FULL job JSON string, not just the job ID
cleanup_jobs_batch_pipelined(worker_id : String, job_ids : Array(String)) : Nil
Batch job cleanup for improved performance
clear
Sourcedelete_job(job : String)
Sourcejob_type
Sourcejobs(page_number : Int32 = 1, page_size : Int32 = 200)
Sourcemark_as_dead(job : String)
Sourcename
Sourcenext_job
Sourceparse_job(job : String) : T
Sourcerelease_job_claim(worker_id : String) : Nil
Sourcerelease_job_claims_batch(worker_id : String, job_count : Int32) : Nil
Sourceretry(job : String)
Sourcerunning?
Sourcerunning_workers
Sourcesize
Sourcestart
Sourcestatus
Sourcestop!
Sourcestore
Sourcethrottle_limit
Sourcetotal_workers
Sourceverify_job_removed_from_processing?(job_id : String) : Bool
Verify that a job has been properly removed from processing queue
worker_manager
Source