Medium badge Sidekiq

Challenge

Only editable by group admins

  • Last updated November 10, 2018 at 5:15 PM by hankish
  • Evidence only visible to badge awarders
Solve this learning challenge by posting code snippets.

Instructions

Post code snippets for each of the items described below.
Sidekiq is not that complicated, so this challenge is pretty simple. It's basically a toy example, but it shouldn't take long.

Assume that there is a model called 'Badge'. Write a Sidekiq worker that would take a list of badge ids and then delete all of the specified badges.

Now post a snippet showing how you would trigger that worker to run 60 seconds from now in the 'high' priority queue.