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:

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:
It seems that there might be an issue with the
customobject being passed in correctly utilisingActiveJobvs nativeFaktory::JobsAs you can see two identical jobs are
enqueuedimmediately after one another: