I’m using a cron expression that should only run on the first Saturday of each month. It’s this: 0 9 1-7 * 6
It doesn’t seem to be working properly. It’s been triggered randomly several times. Any idea what could be wrong? Is the expression incorrect?
I’m using this version of n8n: 1.109.2 selhosted
Thanks for your reply! I appreciate you helping me out.
Is this actually going to work for n8n? The # syntax is a special feature that isn’t supported by all cron systems. n8n uses the standard node-cron library, which doesn’t support this specific # functionality. At least, that’s what I’m reading in some articles.
Thank you. I’ve added a code node after the trigger:
// Expected to run on Saturdays at 9:00 AM by your cron
const now = new Date();
const dayOfMonth = now.getDate();
// Pass if day 1..7 (first week of the month)
if (dayOfMonth >= 1 && dayOfMonth <= 8) {
return items; // continue to next node
} else {
return ; // stop for this run
}
I’m looking forward to next month 