Page 1 of 2

email processor

Posted: Fri Jul 03, 2020 12:12 pm
by Ghtais
Hi all

I have a workflow with 3 branch (for 3 different transcode) and when it is completed I would like to send an email.
I have put a "hold" processor to wait for each branch at the end of the encode process. after that,I delete the source file and at the top end I send an email.
My pb is that FFAStrans send 3 email instead of one.
Do you have any idea how can I have only one mail ?

bye

Re: email processor

Posted: Fri Jul 03, 2020 8:20 pm
by momocampo
Hello Ghtais,
You could insert a populate node at the start of each encode node, the same variable will be populated.
e.g: you set %i_continue% to 0 on the first 2 branches and the third to 1. After the hold node you can conditionally test if %i_continue% = 1, and if yes, continue to email.
Only 1 mail will be sent :D

cheers.

Benjamin

Re: email processor

Posted: Sat Jul 04, 2020 6:12 am
by emcodem
Hey Ghtais (finally i got your name right, damned selective perception!) :-)

Maybe this topic helps you to understand and solve your problem :-)
viewtopic.php?f=5&t=543&p=4665&hilit=branch+end#p4665

Re: email processor

Posted: Sun Jul 05, 2020 11:36 am
by Ghtais
Hi

Whaouu this is very very cunning :D
not logical but very cunning.
I'am going to try it as soon as possible. thank you for your help !

bye

Re: email processor

Posted: Mon Jul 06, 2020 1:42 pm
by Ghtais
Tested and approved !!!
it works great. In reality, I inserted only one populate node on one branch and put the conditional just after the Hold processor.
I would say thank you to Emcodem and momocampo for their precious help.
bye

Re: email processor

Posted: Mon Jul 06, 2020 4:14 pm
by momocampo
Great!!
Happy to hear it's ok for you ;)
Cheers.
B.

Re: email processor

Posted: Thu Jul 09, 2020 3:20 pm
by Ghtais
haha, may I have spoken a little bit too quickly.
It doesn't work if FFAStrans execute the workflow in parallel with 2 files :-). In this condition, I don't receive any mail and it gives me an error.
I have to check why it is a bit tricky like this.

Re: email processor

Posted: Thu Jul 09, 2020 5:02 pm
by momocampo
Hello Ghtais,
Could you share your workflow please? It will be easier to find the issue.
Thanks.

B.

Re: email processor

Posted: Thu Jul 09, 2020 9:01 pm
by Ghtais
Hello Benjamin

Sorry I cannot share my workflow here because there is some confidential information on it (password, user and IP for our FTP and network drive, personal email addresses, etc)
But don't worry I think it is not a big deal. First, I have to try to put the populate processor on the longest time processing branch.
Secondly, I noticed that I have set 3600 seconds in the Hold processor which seem to be not enough.

I will keep you inform if this change or not.

Re: email processor

Posted: Fri Jul 10, 2020 9:39 am
by momocampo
Hi,
Ok let us know if you need something else. Remember we have to see each other ;)
;)