Closed DynamiteC closed 2 years ago
add
cronValidate: {
override: {
useLastDayOfWeek: true
}
}
to your job configuration. Will be adding this to the docs thanks for catching it.
@shadowgate15 @niftylettuce Hi, This still didnt workout.
I tried both ways
cron: '30 18 L * *',
cronValidate: {
useLastDayOfMonth: true
}
as well as
cron: '30 18 L * *',
cronValidate: {
override: {
useLastDayOfMonth: true
}
}
It shows same error.
Error: Job #1 named "testJob" had an invalid cron pattern: Element 'L of daysOfMonth field is invalid. (Input cron: '30 18 L * *')
Just to confirm, which version of Bree are you using?
I have found a workaround this.
hasSeconds: true,
cronValidate: {
override: {
useLastDayOfMonth: true
}
}
Getting Above Error While Setting up Cron Job for Last Day of month at 6:30pm time. As per the guidelines the cron is supported.
I got referenced from above, how to resolve this.
This is my code.
This is the full error.