Closed nynhex closed 7 years ago
Sounds like the rake process is starting, queueing the jobs and then killing the process. In that case, the threads die too, so nothing is done. To confirm, you can add a sleep to the end of the rake task. If that job runs successfully then, that's your problem.
@brandonhilkert thanks so much, I injected 2 seconds of sleep and the job ran via rake no problem. Thanks so much for the quick response. I love sucker_punch but am just getting used to making it do things it may not have been designed to do 👍
I have a worker which I can easily fire off from the rails console and it will work without fail. However when I run this in staging (production copy) via a rake task I get the following stack trace:
So I looked this up, and adjusted my database.yml to include
min_messages: warning
in the production yaml block and the exception went away. However whenever I fire the job from a rake task it silently fails with no stack trace.Here's how I'm running it in production:
And here's what my rake task looks like
Am I not able to run sucker_punch jobs from a rake task or am I totally missing something here?
Thanks in advance on this.