Serverless compute spec #780
abelanger5
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
This proposal introduces a new "Managed Compute" feature to enable Hatchet to orchestrate required resources and compute environments for running functions on the queue. This feature aims to provide more granular control over the compute resources allocated to different parts of a Hatchet workflow, while simplifying the management of diverse compute requirements across functions.
Goals
Proposed Changes
1. ComputeConfig Class
Introduce a new
ComputeConfigclass in the Hatchet SDK to define compute requirements:2. Decorator Extensions
Extend the
@hatchet.functionand@hatchet.durabledecorators to accept amanaged_computeparameter:3. Worker Configuration
Modify the
hatchet.managed_workerfunction to handle managed compute:Implementation Details
hatchet_sdk.v2.managed_computeto house theComputeConfigclass and related utilities.hatchet.functionandhatchet.durabledecorators to incorporate managed compute information.ManagedWorkerclass to handle compute configurations.Backwards Compatibility
This feature will be backwards compatible. Functions without a specified
managed_computewill use the worker'sdefault_computeconfiguration.Future Considerations
Open Questions
Beta Was this translation helpful? Give feedback.
All reactions