Ruby on Rails expert

Job ID: 33807917

Budget: $15 – $25 USD

The scenario here is that I have a rails 5.2 application, and I want a couple of rake tasks to populate and then process a queue.

So imagine I have a Song model, with 2000 items in it.

Once an hour I will run the populate_queue rake task, which will fetch all the Song.id and add them to a queue as individual items.

I will have multiple containers running a process_song rake task that will watch the queue, and when those 2000 items arrive each hour, they will start pulling the items off the queue and processing them.

You can use what ever queue gem you like, sidekiq, resque, or suggest an alternative.

I just want you to create a sample rails 5.2 application and write the two tasks for me.

Note the process_song task doesn't have to do anything, just print the Song.id for now.

I would like to complete this task in 24 to 48 hours please.
Related categories: Ruby on Rails Ruby