我如何仅在星期日执行每日工作流程的一部分

发布于 2025-01-25 02:21:24 字数 131 浏览 5 评论 0原文

我有一个工作流程'WF_OFSLL_WVR_CONV_ERROR_LOG_ARC',该工作流只能在周日运行。我创建了一个工作流程,该工作流触发此'wf_ofsll_wvr_conv_error_eror_log_arc'workflow仅在星期日。

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空‖城人不在 2025-02-01 02:21:24

您可以使用调度程序安排工作流程吗?

编辑工作流程>转到Scheduler>根据此图片更改时间表。

确保工作流程永远运行并每周重复。

编辑-
根据评论,
让工作流链接每天运行,不要提及任何条件。然后将下面的代码添加到您的代码中,以便仅在周日开始蠕虫。

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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文