salmon-truck-59834
08/06/2025, 4:43 PMcontainer_image
parameter like regular Flyte tasks. Is there a recommended approach for running Flyte containerized tasks on Slurm?faint-pilot-24699
08/07/2025, 6:35 AMsalmon-truck-59834
08/07/2025, 3:17 PMSlurmTask
or SlurmShellTask
in Python.
My follow-up question is: *is it possible to define a task using SlurmFunction
(or similar) that is also containerized?*For example, can we create a task that runs in a container but still submits the job through Slurm?
@task(
task_config=SlurmFunction(
node_count=1,
partition="debug",
time_limit="10:00"
),
container_image="ubuntu:latest"
)
def my_task() -> str:
return "Hello from container"
faint-pilot-24699
08/08/2025, 5:46 AMsalmon-truck-59834
08/08/2025, 2:09 PM