JID question
#6221
Replies: 1 comment 1 reply
-
FYI Yes, job = PlayJob.set(...).perform_later
job.provider_job_id |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is
include Sidekiq::Worker
still required to get access to JID inside the WorkerJob or ApplicationJob?Sidekiq 7.2.2
Redis 4.8.1
My job
ApplicationJob
If I include
Sidekiq::Worker
in either of the above I can't submit the job.PlayJob.set(queue: queue_name.to_sym).perform_later(play, queue_name, project, shared_project)
Without Sidekiq:Worker it appears I can't leverage JID for the cancel job method.
https://github.com/sidekiq/sidekiq/wiki/FAQ#how-do-i-cancel-a-sidekiq-job
Do I need to use
Sidekiq::Client.push
instead. Anytime I addinclude Sidekiq::Worker
it seems to break submitting a job.Beta Was this translation helpful? Give feedback.
All reactions