首页 > 解决方案 > 如何编写一个在星期三每两周运行一次的 cron 计划

问题描述

我需要在 Gitlab 中以 Cron 语法添加一个间隔模式,以便该作业每隔一个星期三运行一次。

我尝试使用 0 21 */2 * 3 它,它在验证器的日志下方给出,但在 GitLab 中没有正确显示。

next at 2021-04-21 21:00:00
then at 2021-05-05 21:00:00
then at 2021-05-19 21:00:00
then at 2021-06-09 21:00:00
then at 2021-06-23 21:00:00

标签: crongitlabschedulingcron-task

解决方案


推荐阅读