3

I'm using sucker punch future job but sometimes I need to remove it in another request before it is executed.

For that I have to find it by the args I passed to the job before being able to kill it.

AlexLarra
  • 841
  • 5
  • 18
  • The library doesn't seem to implement the delete/destroy, however you could maneuver through the queue (https://github.com/brandonhilkert/sucker_punch/blob/master/lib/sucker_punch/queue.rb#L19) and see if you could get the pending jobs if you could then then it'd probably have some way fo deleting the job as well. – Surya Feb 05 '20 at 14:24
  • Yes I tried it but it doesn't come with args, so I cannot select by it – AlexLarra Feb 06 '20 at 09:08

0 Answers0