Alex's Slip-box

These are my org-mode notes in sort of Zettelkasten style

Sidekiq stuff

:ID: 57F3BD52-A75D-433A-A07F-CB1E06875C84

# Starting it up

sidekiq -q default -q foo

sidekiq --help shows you all the startup options.

# Poke around in the console

# Scheduled jobs

See also https://www.rubydoc.info/github/mperham/sidekiq/Sidekiq/ScheduledSet

irb(main):001:0> r = Sidekiq::ScheduledSet.new
=> #<Sidekiq::ScheduledSet:0x00000000090f6a50 @name="schedule", @_size=1>

# Add a scheduled job to the queue

See also https://www.rubydoc.info/github/mperham/sidekiq/Sidekiq/SortedEntry

r = Sidekiq::ScheduledSet.new
r.first.add_to_queue

# Enqueuing in bulk

See also https://www.rubydoc.info/github/mperham/sidekiq/Sidekiq%2FClient:push_bulk

Sidekiq::Client.push_bulk('class' => SomeWorkerClass, 'args' => args)

args is a 2D array.