-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support Styx style schedule in flyteidl #529
Comments
This will require some additional work in flyteconsole in order to correctly display the schedule. |
@schottra Thanks for pointing out! We will work on a PR to fix this if the proposed IDL change makes sense and gets merged. |
We are keeping the existing |
@honnix I think this can be closed right? |
Sort of I think. Do we want to fix console to be able to render the new message? |
@kumare3 @schottra I proposed a small change in flyteorg/flyteconsole#107. PTAL, thanks. |
@honnix, @schottra and I had a discussion today about the use of offsets. Firstly, let us define offsets NOTE lp = wf.create_launch_plan(
cron="@hourly",
inputs={
"window": "P1H",
"delay": "P3H",
},
) Here window refers to the window of computation for the data. delay refers to the actual delay in computation of the data. Thus every hour, the computation may look back 3H and use data in the (T-3H, T-2H) period. The same can be achieved using an offset lp = wf.create_launch_plan(
cron=("@hourly", offset="P3H"),
inputs={
"window": "P1H",
},
) Thus the schedule could be varied based on the data. User interface consideration
Conclusion |
I think we can close this now. Thanks for everyone's help. |
* wip Signed-off-by: Yee Hing Tong <[email protected]> * wip Signed-off-by: Yee Hing Tong <[email protected]> * comments Signed-off-by: Yee Hing Tong <[email protected]> * stylistic changes Signed-off-by: Samhita Alla <[email protected]> Co-authored-by: Samhita Alla <[email protected]>
* fix release process Signed-off-by: Yuvraj <[email protected]> * more changes Signed-off-by: Yuvraj <[email protected]> * more changes Signed-off-by: Yuvraj <[email protected]> * fix workflow Signed-off-by: Yuvraj <[email protected]> Co-authored-by: Yuvraj <[email protected]>
* updated flyteidl Signed-off-by: Daniel Rammer <[email protected]> * updated pod timestamp recording and added recorded_at on task event Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins Signed-off-by: Daniel Rammer <[email protected]> * setting occurred_at when node inputs begin resolution Signed-off-by: Daniel Rammer <[email protected]> * added reported_at to node execution events Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins dependencies Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins deps Signed-off-by: Daniel Rammer <[email protected]> --------- Signed-off-by: Daniel Rammer <[email protected]>
* updated flyteidl Signed-off-by: Daniel Rammer <[email protected]> * updated pod timestamp recording and added recorded_at on task event Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins Signed-off-by: Daniel Rammer <[email protected]> * setting occurred_at when node inputs begin resolution Signed-off-by: Daniel Rammer <[email protected]> * added reported_at to node execution events Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins dependencies Signed-off-by: Daniel Rammer <[email protected]> * updated flyteidl and flyteplugins deps Signed-off-by: Daniel Rammer <[email protected]> --------- Signed-off-by: Daniel Rammer <[email protected]>
Motivation: Why do you think this is important?
When integrating with our scheduler Styx, we will need to extend the semantics of schedule to support Styx cron syntax, cron aliases, as well as offset.
Goal: What should the final outcome look like, ideally?
Schedule
protobuf definition is extended to support Styx style schedule.Describe alternatives you've considered
We tried reusing existing cron but the syntax is a bit different and flytekit doesn't support Styx style cron aliases; and more importantly, we need to support
offset
which is one the most important concepts in Styx.Flyte component
[Optional] Propose: Link/Inline
We could extend
Schedule
protobuf in the following way:Additional context
The way we integrate Styx with Flyte is having a deployment service talking flyteadmin interface in the northbound and deploying entities to both Flyte and Styx.
The deployment service does not forward
schedule
to flyteadmin, but only to Styx.Is this a blocker for you to adopt Flyte
Yes unfortunately.
The text was updated successfully, but these errors were encountered: