Hi,
I have a workflow that works great, a file is uploaded to us and goes into an INPUT folder which another applications uses as a watch folder. One that file has been processed it gets moved to a PROCESSED folder and FFAStrans sends out email comms to let us know its complete.
Every now and then a file doesn't get processed, usually due the the uploaded file not having the right codec or frame rate or just corrupt. What I would like to do is have FFAStrans monitor that INPUT folder and if any files creation date is older than 5hrs to send me an email to say that it has stalled and requires manual interaction.
Is this possible with conditional node? Or is this too complex for FFAStrans and something I might have to look into with powershell?
Send email based on age of file
Re: Send email based on age of file
Hey Ian,
there are lots of options how to do what you like but not directly with the monitor folder processor. Usually we just use the "execute on error" functionality and just execute the error action directly in the first processing workflow that picks up the files initially.
Are you aware about how to handle errors in a workflow? https://ffastrans.com/wiki/doku.php?id= ... &s[]=error
Monitoring for "old files only" could be done by a scheduled workflow from the webinterface, just start a workflow every minute and the workflow itself contains the "list files" plugin processor that lists files older than 5 hours. Then you can use a conditional to check if the file count != 0 and execute your action.
Also, to support more formats, you could potentially try different methods in your workflow, e.g. first try: just encode, on error, use A/V decoder (full decode) and then encode, on error, use the stills decoder then encode...
there are lots of options how to do what you like but not directly with the monitor folder processor. Usually we just use the "execute on error" functionality and just execute the error action directly in the first processing workflow that picks up the files initially.
Are you aware about how to handle errors in a workflow? https://ffastrans.com/wiki/doku.php?id= ... &s[]=error
Monitoring for "old files only" could be done by a scheduled workflow from the webinterface, just start a workflow every minute and the workflow itself contains the "list files" plugin processor that lists files older than 5 hours. Then you can use a conditional to check if the file count != 0 and execute your action.
Also, to support more formats, you could potentially try different methods in your workflow, e.g. first try: just encode, on error, use A/V decoder (full decode) and then encode, on error, use the stills decoder then encode...
emcodem, wrapping since 2009 you got the rhyme?