Page 1 of 1

Retry of files

Posted: Fri Aug 12, 2016 11:04 am
by mberg
Hi Steinar

I have set up a workflow that transcode files and copy them to different folder based on recurse path. I want to overwrite a file(A), with the new transcoded file(B) that have the same filename.But if the file(A) is in use and i can not overwrite it, the transcoded file(B) gets copy to a "temp" folder.

I have set up a watchfolder on the "temp" folder and have a workflow that will try to overwrite the file(A) when it is not in use. If the file(A) still is in use, i want it to try again in the next run. My problem is that i can not get FFAStrans to detect the transcoded file(B) as a new file in the watchfolder after the first run.
Have tried to change modify date on the transcoded file(B) and changed filtype. The only thing that works is to change something in the filename, then the file(B) is detected at the next run. But i need the filename to overwrite the right file, so i can not change this.

How is new files detected in the watchfolder? Do i need to clear watchfolder's cache history manually?

Is there an easy way to retry the same file over again in a workflow, if it fails in the previous runs?

Thanks.

Regards
Marius

Re: Retry of files

Posted: Sun Aug 14, 2016 11:29 am
by admin
Hi Marius, welcome to the forum and thank you for using FFAStrans! :-)
At the moment there is no easy way to retry a failed job because a workflow can end with both failed and success state at the same time. You can however create the following batch script and kick it off using the "Command executor".

Goto file_move
:file_move
ping 127.0.0.1 -n 10 > nul
move /Y %1 %2
if exist %1 goto file_move

The "Command executor" should then be configured to something like:
c:\file_move.bat "d:\media\my_new_file.mp4" "%s_original_full%"


The script will then run in a loop until it's successful.

-steinar

Re: Retry of files

Posted: Mon Aug 15, 2016 7:26 pm
by mberg
Hi

Thanks for the answer! I will see if i can create a script that will do the job.

Could you tell how the watchfolder detect new files? Is it a combination of filename and modify date?

Great job on this software :-)

Marius

Re: Retry of files

Posted: Tue Aug 16, 2016 6:09 pm
by admin
Thanks! :-)

FFAStrans looks for new file names. Date is omitted and size is used to check for growing files when that option is enabled. It used to take date into the equation but there were issues with it so I had to abandon the method.

-steinar