postal icon indicating copy to clipboard operation
postal copied to clipboard

Cron Not Running Properly

Open virendrasinght opened this issue 8 years ago • 6 comments

@willpower232 @adamcooke I have make one job and put that into cron.rb file to run every 15 minutes. But when I am running postal through run command, it is not showing that running. Is there any problem with cron? Is cron need to run first?

virendrasinght avatar Jul 24 '18 10:07 virendrasinght

What are you trying to accomplish? Are you putting tasks unrelated to Postal in cron.rb?

willpower232 avatar Jul 24 '18 13:07 willpower232

@willpower232 I made one job that will release held mails.

virendrasinght avatar Jul 24 '18 14:07 virendrasinght

Can you share your cron.rb file?

willpower232 avatar Jul 24 '18 14:07 willpower232

screenshot from 2018-07-24 20-01-36 @willpower232 This is my cron.rb file. In this I have added ReleaseHeldMessagesJob.queue(:main) job to run every 15 minutes.

virendrasinght avatar Jul 24 '18 14:07 virendrasinght

@willpower232 @adamcooke can you please help me with this?

virendrasinght avatar Jul 25 '18 07:07 virendrasinght

sorry, I presume you added the ReleaseHeldMessagesJob code, were you able to test it outside of cron.rb?

willpower232 avatar Jul 26 '18 10:07 willpower232