Re: How do you run custom script with rails ?

Frederick Cheung
Mon, 24 Dec 2012 11:58:03 -0000

.
>

> Thanks scott . I will keep this thing in mind .may be i will use
> deplayedjob or something like that . My motive is to start some script ,
> it will take hour to finish. In this meantime, a user can also start
> same process again with different entity or cancel/resume ongoing
> processes .
>

If it takes an hour to run you could very easily run out of delayed
job processes. In addition to using something like childprocess to
control your child processes, you might want to try if you could write
a single master process that could use select to multiplex io from all
of the child processes.

Fred

> --
> Posted viahttp://www.ruby-forum.com/.