-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Trying to do the below task in order to create unique jobs, as per:
https://github.com/contribsys/faktory/wiki/Pro-Unique-Jobs
My job classes look something like:
class FaktoryJob < ActiveJob::Base
self.queue_adapter = :faktory
queue_as 'default'
end
class SleepJob < FaktoryJob
faktory_options custom: { unique_for: 5 }
def perform
sleep 10.seconds
end
end
It seems that there might be an issue with the custom
object being passed in correctly utilising ActiveJob
vs native Faktory::Jobs
As you can see two identical jobs are enqueued
immediately after one another:
Metadata
Metadata
Assignees
Labels
No labels