superset icon indicating copy to clipboard operation
superset copied to clipboard

need crontab syntax for First monday of every month

Open gogitub opened this issue 6 years ago • 3 comments

Hi,

Can anyone please help me with Schedule Email Reports Crontab syntax for "First monday of every month"? Tried below options but not working. 0 8 1-7 * 1 0 8 1-7 * * [ "$(date '+%a')" = "Mon" ] 0 8 * * 1 [ date '+\%m' == date '+\%m' -d "1 week ago" ]

Please advise. Thanks.

gogitub avatar May 04 '20 12:05 gogitub

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jul 03 '20 13:07 stale[bot]

I'll bite, does this work? https://crontab.guru/#0_0_1-7_*_1

mistercrunch avatar Jul 03 '20 21:07 mistercrunch

As this is not a Superset-specific question, but one about a widely used syntax, I'd recommend asking on Stack Oveflow

willbarrett avatar Aug 04 '20 20:08 willbarrett