%s_recursed_path% doesn't seem to get populated on resubmit

Questions and answers on how to get the most out of FFAStrans
Post Reply
kimble
Posts: 24
Joined: Mon Apr 11, 2016 9:35 pm

%s_recursed_path% doesn't seem to get populated on resubmit

Post by kimble »

Hi,

I have a workflow that has a conditional fail on if a watermark.txt file doesn't exist.

If this workflow fails, it's set to retry but this retry and even a manual retry of the job from the webinterface doesn't seem to work.

I think I have traced this down to the %s_recursed_path% failing to populate when it's initiated on anything other than an original watch folder picking the file up.

Is this a known limitation? Any ideas on how to ensure that variables get re-populated when retrying a job from the status monitor?

Thank you,

Neil
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: %s_recursed_path% doesn't seem to get populated on resubmit

Post by admin »

Hi kimble,

Resubmit in the web interface is not the same as retry in the status monitor. Resubmit actually creates a whole new job with no prior knowledge of the initial job. That enables you to change your workflow and try the source once more with updated configuration.
Retry from the status monitor will retry the exact same job with exact same configuration. In this scenario %s_recursed_path% will work as expected but not in the first where you resubmit.
We will try to make this distinction more clear and also enable the option to retry from the web interface.

Thanks for reporting! :-)

-steinar
kimble
Posts: 24
Joined: Mon Apr 11, 2016 9:35 pm

Re: %s_recursed_path% doesn't seem to get populated on resubmit

Post by kimble »

Ok, this is strange as I am seeing the same behavior's in both web and client. It might be something specific to this workflow.

For some reason, if this job fails on the "Watermark Existence Check" regex check for an empty or missing string, it will never pass again. As if it's not reflowing through the populate vars. When I looked in the log I can see it fails to populate the %s_recursed_path% this time through. Highlighted in red here.

{
"created": "2023-10-17T15:50:09.537+01:00",
"node": {
"id": "20231010-1044-5303-802c-f18d4d7f69d5",
"type": "op_populate"
},
"split_id": "1-0-0",
"event": "pre_evaluation",
"type": "trace",
"context": "node execution",
"host": "redacted",
"data": {
"name": "s_my_toplevel_path",
"data": "_MyRegExpExt(\"\",\"^(?:[^\\\\]*\\\\)?(.*?)(?:\\\\|$)\")"
}
},
{
"created": "2023-10-17T15:50:09.553+01:00",
"node": {
"id": "20231010-1044-5303-802c-f18d4d7f69d5",
"type": "op_populate"
},
"split_id": "1-0-0",
"event": "populate_variable",
"type": "trace",
"context": "node execution",
"host": "redacted",
"data": {
"name": "s_my_toplevel_path",
"type": "string",
"data": ""
}
},
Attachments
Video_20231009-1309-1542-7324-fa0da75ac378.json
(6.69 KiB) Downloaded 299 times
kimble
Posts: 24
Joined: Mon Apr 11, 2016 9:35 pm

Re: %s_recursed_path% doesn't seem to get populated on resubmit

Post by kimble »

Interestingly, I have added a conditional node before the populate variable node and this has fixed the issue so perhaps this is related to the populate variable node being straight after a watch folder.
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: %s_recursed_path% doesn't seem to get populated on resubmit

Post by emcodem »

Sorry kimble, i downloaded your wf but didnt find the time to work into it.
Interesting solution, could you maybe share the working version too? It kind of sounds a little buggy to me...
emcodem, wrapping since 2009 you got the rhyme?
Post Reply