I'm trying to run a rake task (rake db:send_pending_emails) every minute via Iron Worker, but I can't seem to get it to work... Maybe I don't understand the IronWorker API so well, but I'm doing something like this:
In "send_emails.rb" I have:
This is probably (very) wrong, so I'm wondering if someone could help me figure this one out?
it looks like you're missing a few things in your .worker file. You'd have to add your Rakefile and all required dependencies to your .worker file for it to be able to run on the IronWorker platform. It looks like you've included all your gem dependencies, but you'll also need to include your own code if it's required to run the rake task with the
Also, it's probably easier to not use Rake and just copy what's in that task into your send_emails.rb.