0

How to write a go-cron expression to trigger a run of a job on the 3rd Thursday of every month? This is specific to scheduling pipelines on Kubeflow.

For example: croniter library provides the hash symbol for day of the week which allows you to schedule on the nth day of the month. Reference.

Can we do something similar with go-cron?

1 Answers1

0

answer:

s.cron(0 0 15-21 * 2)

I expect the 3 Thuesday to be in the range of the 15-21 day of the month. By limiting in the Thuesday it should run “At 00:00 on every day-of-month from 15 through 21 and on Tuesday.”

further reading:

Crons Answer 1 15 days of the month

Examples of go-cron

The quick and simple editor for cron schedule expressions by Cronitor

piecepaper
  • 9
  • 1
  • 2