-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Introducing a subscription API for autonomous task scheduling #11779
Commits on Jan 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 083fe2d - Browse repository at this point
Copy the full SHA 083fe2dView commit details
Commits on Jan 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bdc2a1d - Browse repository at this point
Copy the full SHA bdc2a1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 768ed79 - Browse repository at this point
Copy the full SHA 768ed79View commit details
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 52e5bf8 - Browse repository at this point
Copy the full SHA 52e5bf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69f8bf6 - Browse repository at this point
Copy the full SHA 69f8bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57eaefb - Browse repository at this point
Copy the full SHA 57eaefbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fc1d12 - Browse repository at this point
Copy the full SHA 0fc1d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2cd571 - Browse repository at this point
Copy the full SHA f2cd571View commit details
Commits on Jan 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 26214c0 - Browse repository at this point
Copy the full SHA 26214c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e32dbae - Browse repository at this point
Copy the full SHA e32dbaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for dee5d4e - Browse repository at this point
Copy the full SHA dee5d4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea6d5b3 - Browse repository at this point
Copy the full SHA ea6d5b3View commit details -
task parameters in storage (#11736)
Co-authored-by: Nathan Nowack <thrast36@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 77a55df - Browse repository at this point
Copy the full SHA 77a55dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fd8ffb - Browse repository at this point
Copy the full SHA 5fd8ffbView commit details
Commits on Jan 26, 2024
-
track task run params in state details to avoid quantum entanglement (#…
…11737) Co-authored-by: Chris Guidry <chris.g@prefect.io>
Configuration menu - View commit details
-
Copy full SHA for 9c4ef1b - Browse repository at this point
Copy the full SHA 9c4ef1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e74e3c1 - Browse repository at this point
Copy the full SHA e74e3c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d854a69 - Browse repository at this point
Copy the full SHA d854a69View commit details -
Merge branch 'init-task-engine' of https://github.com/PrefectHQ/prefect…
… into init-task-engine
Configuration menu - View commit details
-
Copy full SHA for 2bc96f4 - Browse repository at this point
Copy the full SHA 2bc96f4View commit details
Commits on Jan 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 633f5fb - Browse repository at this point
Copy the full SHA 633f5fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62786f3 - Browse repository at this point
Copy the full SHA 62786f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1684731 - Browse repository at this point
Copy the full SHA 1684731View commit details -
Merge branch 'allow-filter-null-flow-run-ids' of https://github.com/P…
…refectHQ/prefect into init-task-engine
Configuration menu - View commit details
-
Copy full SHA for 596c150 - Browse repository at this point
Copy the full SHA 596c150View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aae491 - Browse repository at this point
Copy the full SHA 7aae491View commit details
Commits on Jan 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3303016 - Browse repository at this point
Copy the full SHA 3303016View commit details -
Introducing a subscription API for autonomous task scheduling
In earlier work, we've introduced autonomous task scheduling, where tasks outside a flow run are created as scheduled and picked up by one or more processes running `Task.serve`. In our initial implementation, we used a polling approach where each `TaskSever` would make requests from the API to look for any tasks that were currently `Scheduled`, and then move them to `Running` as they entered the task engine. This work introduces a new mechanism for `TaskServer`s to get work from their Prefect Server: a long-lived websocket connection subscribed to a queue of `TaskRun`s to be worked. Because the Prefect Server is a singleton, it can govern a queue in-memory that will be distributed out among each of the `TaskServer`s to make a simple task brokering system. The websocket implementation is modeled on the `events/in` and `events/out` websockets in Prefect Cloud, and it's expected that we'd negotiate authentication in a common way across all websockets. Note: this does not address issues of resiliency, like what happens if the Prefect Server is restarted (in-flight tasks would be lost), or if there are no `TaskServer`s draining the Queue (the Prefect Server would eventually run out of memory), or if a `TaskServer` died before transitioning a task to `Running` (the task would remain `Scheduled` and never get picked up). These are some of the items I'd like to address in future work if we like this direction. Note: there are no tests for this new subsystem yet.
Configuration menu - View commit details
-
Copy full SHA for d678199 - Browse repository at this point
Copy the full SHA d678199View commit details
Commits on Jan 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a13bbe - Browse repository at this point
Copy the full SHA 6a13bbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 366ef46 - Browse repository at this point
Copy the full SHA 366ef46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 254a89f - Browse repository at this point
Copy the full SHA 254a89fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7f581 - Browse repository at this point
Copy the full SHA 4f7f581View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ee16c0 - Browse repository at this point
Copy the full SHA 6ee16c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7035c9 - Browse repository at this point
Copy the full SHA d7035c9View commit details