I have a question to use `CronSchedule` method whe...
# announcements
s
I have a question to use
CronSchedule
method when I setup launch plan this is my example of launchplan below.
Copy code
if __name__ == "__main__":
    remote = FlyteRemote(config=Config.auto())
    remote.register_launch_plan(
        entity=LaunchPlan.get_or_create(
            name="daily-test",
            workflow=<http://workflows.wf|workflows.wf>,
            # Minutes, Hours, Day-of-month, Month, Day-of-week, Year
            # minute, hour, day-of-month, month, day-of-week, year
            # cron_expression -> aws cron scheme
            schedule=CronSchedule(cron_expression="0 3 * * ? *"),
        ),
        project="flytesnacks", #flyte-aistudio
        domain="development",
        version="51Dwe74FqGRzs2v1WPwrcg==",
    )
It returns the error below
launch plan daily failed to update due to rpc error: code = Internal desc = failed adding schedule for unknown schedule expression type &{0 3 * * ? *}
Is this bug fixed to use
cron_expression with 6 field type
in the latest version?
p
For native scheduler which is the default scheduler you need to use this which uses standard cron format https://docs.flyte.org/en/latest/concepts/schedules.html#cron-expression-table
162 Views