Hi,
I'm wondering a bit why flyte is able to register, display and execute a cron expression like this
0 6 * * MON#1
, but flytescheduler provides error logs:
Copy code
unable to register the schedule {BaseModel:{ID:1259 CreatedAt:2024-02-05 09:51:51.390164 +0000 UTC UpdatedAt:2024-02-05 09:51:51.390164 +0000 UTC DeletedAt:<nil>} SchedulableEntityKey:{Project:<project> Domain:development Name:<my>-launchplan Version:3622cca2ce009e394c1d193d43b6fe46c062afdc} CronExpression:0 6 * * MON#1 FixedRateValue:0 Unit:MINUTE KickoffTimeInputArg: Active:0xc000a042b4} due to failed to parse int from MON#1: strconv.Atoi: parsing "MON#1": invalid syntax
Is that a know "issue"?
t
thankful-minister-83577
02/21/2024, 5:57 PM
not a known issue, but looking at the admin code, it does look like that yeah
thankful-minister-83577
02/21/2024, 5:57 PM
the code is not validating the cron expression as part of the registration flow.
thankful-minister-83577
02/21/2024, 5:58 PM
mind submitting an issue?
thankful-minister-83577
02/21/2024, 5:58 PM
(or even a fix??)
s
some-grass-84903
02/21/2024, 6:15 PM
Sure, will submit one next week, as I'm going into a short vacation