latch exec <hash> subcommand in the right sidebar into your terminal to retrieve a live
shell from within the running task.

latch exec into it and debug.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
It is often desirable to be able to access a shell from within a running task of a workflow, to debug a misbehaving program or inspect some files for example.
latch exec <hash> subcommand in the right sidebar into your terminal to retrieve a live
shell from within the running task.

import time
@task
def very_short_task(a: int, b: int) -> int:
time.sleep(300) # Sleep the task for 5 minutes
return a + b
latch exec into it and debug.Was this page helpful?