Serverless compute spec #780
abelanger5
started this conversation in
Ideas
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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
ComputeConfig
class in the Hatchet SDK to define compute requirements:2. Decorator Extensions
Extend the
@hatchet.function
and@hatchet.durable
decorators to accept amanaged_compute
parameter:3. Worker Configuration
Modify the
hatchet.managed_worker
function to handle managed compute:Implementation Details
hatchet_sdk.v2.managed_compute
to house theComputeConfig
class and related utilities.hatchet.function
andhatchet.durable
decorators to incorporate managed compute information.ManagedWorker
class to handle compute configurations.Backwards Compatibility
This feature will be backwards compatible. Functions without a specified
managed_compute
will use the worker'sdefault_compute
configuration.Future Considerations
Open Questions
Beta Was this translation helpful? Give feedback.
All reactions