How to setup a UserCodeLauncher with Dagster+ Hybrid #31275
-
In #15856 it was mentioned
I could not find any documentation about how to implement a UserCodeLauncher other than the source code linked in that answer. My use case is that I want to run the code in Cloudflare Worker Containers and docker-in-docker does not work in that environment. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Ricardo, In Cloud, the There are a few
The main implementation logic required in a user code launcher is creating a container and returning a unique handle, and removing a container based on its handle. |
Beta Was this translation helpful? Give feedback.
Hi Ricardo,
In Cloud, the
UserCodeLauncher
specifies how to launch code location servers. It also specifies the run launcher, which contains the code to launch runs in their own containers.There are a few
UserCodeLauncher
s with corresponding run launchers which you can reference in our source, in particular:EcsUserCodeLauncher
, which uses theCloudEcsRunLauncher
, extending the baseEcsRunLauncher
DockerUserCodeLauncher
, which uses theCloudDockerRunLauncher
, extending the baseDockerRunLauncher
K8sUserCodeLauncher
, which uses theCloudK8sRunLauncher
, extending the baseK8sRunLauncher
The main implementation logic required in a user code launcher is creating a container and returning a…