Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Do sidekiq workers run if primary server not running?

$
0
0

I have a rails app deployed to heroku (free version).

I have some mailers that I've set up to work via sidekiq.

I have a record, that might have a due date of September 5, 2020.

My worker is set up to send a mailer the day before. So on September 4, 2020, it should run the worker and send the mailer.

However, it appears to me that once the dyno stops running, these jobs will no longer run at the desired time. In other words, on September 4, 2020, the primary server isn't running, and therefore the redis server / sidekiq do not appear to work.

What am I doing wrong here? I'm wanting to queue jobs that will occur at specified times, regardless of whether the primary server is running / app is being used.


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>