Problem is that I need to run a python script at the end of a workflow, only once.emcodem wrote: ↑Thu Jan 09, 2020 7:08 pmThat is a really good question!
There are many ways to overcome this but typically users don't mind if the nodes after join are executed multiple times. E.g. why would it be a problem for you that the text file is overwritten 5 times?
One example solution:
You take the first branch and insert a populate processor after delivery, create and set the user variable "main_branch" to "1". After the "hold" node that synchronizes all jobs, insert a "conditional" and check if the variable "main_branch" is "1". This will cause only 1 branch to go on and 5 branches to "fail".
If you really want to dive into this with me, let me know your questions please.
Script checks all transcoded files, moves them, renames them, checks audio etc.
Can you send me a FFAStrans exported template with such example that does this?
Because, I've tried to do this via conditional and it didn't do nothing:
if $exists(%directory_location%\VOD\%s_source_name%_1.mp4) == 1
if $exists(%directory_location%\VOD\%s_source_name%_2.mp4) == 1
if $exists(%directory_location%\VOD\%s_source_name%_3.mp4) == 1
if $exists(%directory_location%\VOD\%s_source_name%_4.mp4) == 1
if $exists(%directory_location%\VOD\%s_source_name%_5.mp4) == 1
if $exists(%directory_location%\VOD\%s_source_name%_6.mp4) == 1
As I'm trying to check if each profile exists in this folder.
I couldn't check all with that source name (%s_source_name%*) because there is a SMIL and TTML files with same source name.
I've added that conditional just after the all nodes, after deliveries.
What I've done wrong? And why it didn't work for me?
I've tried your recommendation, and problem is that it gets to the that point of conditional (main_branch) but it won't continue.
It seems that synchronize for some reason doesn't wait for all jobs to be finished or something like that... Not sure...?