How to I execute part of a daily workflow only on Sundays

284 views Asked by At

i have one workflow 'wf_OFSLL_WVR_CONV_ERROR_LOG_ARC' which should run only on sunday. i have created one workflow which trigger the this 'wf_OFSLL_WVR_CONV_ERROR_LOG_ARC'workflow only on sunday.so what will be the condition for this to trigger only on sunday

1

There are 1 answers

2
Koushik Roy On

can you schedule the workflow using scheduler?

Edit the workflow > go to scheduler > change schedule according to this pic.
Schedule

Make sure the workflow runs forever and repeat every week.

EDIT- per comment, Let the workflow link run everyday and dont mention any condition. And then add below piece of code into your code so it will kick off worflows only on Sundays.

#/bin/sh
if [[ $(date +%u) -eq 7 ]]; then
    echo 'Sunday, time to kick off the infa workflow'
    ## write your pmcmd here
    exit
fi