email processor

Questions and answers on how to get the most out of FFAStrans
Ghtais
Posts: 157
Joined: Thu Jan 19, 2017 11:06 am

email processor

Post 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
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: email processor

Post 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
emcodem
Posts: 1643
Joined: Wed Sep 19, 2018 8:11 am

Re: email processor

Post 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
emcodem, wrapping since 2009 you got the rhyme?
Ghtais
Posts: 157
Joined: Thu Jan 19, 2017 11:06 am

Re: email processor

Post 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
Ghtais
Posts: 157
Joined: Thu Jan 19, 2017 11:06 am

Re: email processor

Post 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
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: email processor

Post by momocampo »

Great!!
Happy to hear it's ok for you ;)
Cheers.
B.
Ghtais
Posts: 157
Joined: Thu Jan 19, 2017 11:06 am

Re: email processor

Post 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.
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: email processor

Post by momocampo »

Hello Ghtais,
Could you share your workflow please? It will be easier to find the issue.
Thanks.

B.
Ghtais
Posts: 157
Joined: Thu Jan 19, 2017 11:06 am

Re: email processor

Post 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.
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: email processor

Post by momocampo »

Hi,
Ok let us know if you need something else. Remember we have to see each other ;)
;)
Post Reply