Issue with cron schedule expression every second friday every month

Morning!

I have a issue with this cron schedule expression:

* 14 8-15 * 5

I want to execute a flow, only the friday, between 8 day and 15 day, but finally, my flow is executed all days between 8 day and 15 day…

I test with other expressions, like:

* 14 * * 5#2

But doesnt work…

BR!

This is where chatGPT came up with. Let me know if that works for you

To create a cron expression that only runs on Fridays between the 8th and 15th days of each month at 14:00, we need to carefully set each part of the expression.

Here’s the correct cron expression:

0 14 8-15 * 5

Explanation:
• 0: Run at the 0th minute of the hour (i.e., exactly at 14:00).
• 14: Run at 14:00 (2 PM).
• 8-15: Run only on the 8th through the 15th days of the month.
• *: Every month.
• 5: Only on Fridays (5 represents Friday in cron syntax).

This expression should ensure the flow only runs on Fridays between the 8th and 15th of each month at 14:00.

thanks Bram, i know how crontab works.

The issue is that cron, work all the days, instead only for 8-15.

The Activepieces show that the format is correct, but doesnt work only 8-15 day.

If you make a test in your enviroment you can see that.

BR!.

This is a weird quirk of the cron standard, for some (historical?) reason the day-of-month and day-of-week fields are ORed instead of ANDed like the others.

For reference:

As far as I can tell there’s no way to do this with only a single cron expression.