Maybe, but there's no guarantee of that. The dyno that received the
request may be running on a totally different server than the worker
that processes it. In this case, you should upload the file to S3,
then download from S3 in the worker for processing.

Hope this helps,
David

On Fri, Jan 8, 2010 at 1:37 PM, Karl <[email protected]> wrote:
> My app uploads a file (via paperclip), and saves the file in
> ":rails_root/tmp/:id/:basename.:extension". Works perfectly.
>
> After the file is successfully received and saved in tmp, I need to
> run a script on it that may take 30-60 seconds. For now I just process
> this within the current request cycle.
>
> I know that files stored in tmp will, eventually, be deleted. In my
> case, I *want* them to be deleted, after they are processed.
>
>
> If I wanted to use Delayed Job to process this file, will DJ still
> find the file as it is saved in tmp? Consider that the file should be
> processed immediately after it is uploaded, there is no need to wait
> for some time in the future.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
>
>
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.


Reply via email to