Runs & Logs
Every script and workflow run — whether it started in the web app, from SageCode, a webhook or a schedule — is in your run history. SageCode lets you search it, read it and keep copies.
sagex list run --limit 10 # the most recent runs, newest first
sagex show run 46a2 --logs # status, each node, and its output
sagex copy run --since 7days # into runs/ in your workspace
- Find a run with
list run. Runs are named by id, and the first few characters are enough (46a2). show runprints the run's status and each node's result. Add--logsfor their stdout and stderr, or--jsonfor scripting.copy runsaves a run's metadata and logs toruns/in your workspace, one folder per run. Copy one run by id, or a window of runs with--since 1day,7days,1monthorall.- Live runs save their own logs.
run script,run workflow,trigger fireandtrigger watchkeep a copy underlogs/in your workspace as they finish (see Core Concepts).
Run logs are kept in AutoSage for 90 days, the same history you see on the Execution Logs page. Copy anything you need to keep longer.