i want to upload and convert video using backgroundrb.
In my case everything is fine, but i dont understand why my controller
is waiting for worker to be done?
if i use this method
success = system("#{FFMPEG} -i #{video_file} -s 320x240 -ar 22050
{video_file}.flv")
my controller is waiting for worker to be done.
but if i use this method
success = IO.popen("ffmpeg -i #{video_file} -ab 32k -ar 22050 -s 320x240
#{video_file}.flv")
controller dont waiting for worker.
But then i dont have any feedback about converting status.
Can someone explain me what im doing wrong or how can i do best ?
Probably not the source of your problem but I can tell you are not using
the newest version of backgroundrb by your syntax. The new version goes
from this
Probably not the source of your problem but I can tell you are not using
the newest version of backgroundrb by your syntax. The new version goes
from this
When you are using send_request to send task to worker, you are asking
that I will wait for results back no matter how much time it takes.
You shouldn't use send_request, its blocking in nature. You should
rather use ask_work