So, still not sure why but, only on Heroku if I put a sleep 1 delay
around the Delayed::Job.enqueue statement in my controller, it works.
Running it in either dev or prod environments locally on my dev
machine always worked fine.


On Mar 20, 11:06 pm, "adeel...@gmail.com" <adeel...@gmail.com> wrote:
> Ok let me know if I'm missing something...
>
> I have a pretty typical Paperclip file upload application that accepts
> user documents. I'm doing some processing on the docs that I want to
> delegate to a worker. Worker pull doc from S3 processes it and writes
> to the db. All works perfectly on local machine in development.
>
> So I deploy, migrate database and run 'heroku workers 1'. The logs
> show DJ process started ok. But nothing is going to the worker when I
> upload a document.
>
> 'Delayed::Job.find(:first)' in the console always shows nil.
>
> This should be pretty straightforward. Am I missing something?
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to