We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
In Sidekiq, a Worker is a class that executes jobs based on the arguments passed into its perform method.
perform
class MyWorker include Sidekiq::Worker def perform(user_id : Int64, email : String) # do something end end
You create a job using the async API:
jid = MyWorker.async.perform(123_i64, "hello@example.com")
You'll get back a JID, a unique identifier for every job you create.