mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-03 08:10:27 +00:00
feat: add job_id and flow_path to flow step error objects (#11941)
* feat: add job_id to step error objects in bun, deno, python and php wrappers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: add job_id to the duckdb data-test step error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: add flow_path to step error objects Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: close the job_id guard before flow_path in the deno wrapper Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dc1fb5087b
commit
eeb48f0c26
@@ -1003,6 +1003,12 @@ except BaseException as e:
|
||||
flow_node_id = os.environ.get('WM_FLOW_STEP_ID')
|
||||
if flow_node_id:
|
||||
err['step_id'] = flow_node_id
|
||||
job_id = os.environ.get('WM_JOB_ID')
|
||||
if job_id:
|
||||
err['job_id'] = job_id
|
||||
flow_path = os.environ.get('WM_FLOW_PATH')
|
||||
if flow_path:
|
||||
err['flow_path'] = flow_path
|
||||
err_json = json.dumps(err, separators=(',', ':'), default=str).replace('\n', '')
|
||||
f.write(err_json)
|
||||
sys.exit(1)
|
||||
@@ -1073,6 +1079,12 @@ except BaseException as e:
|
||||
flow_node_id = os.environ.get('WM_FLOW_STEP_ID')
|
||||
if flow_node_id:
|
||||
err['step_id'] = flow_node_id
|
||||
job_id = os.environ.get('WM_JOB_ID')
|
||||
if job_id:
|
||||
err['job_id'] = job_id
|
||||
flow_path = os.environ.get('WM_FLOW_PATH')
|
||||
if flow_path:
|
||||
err['flow_path'] = flow_path
|
||||
err_json = json.dumps(err, separators=(',', ':'), default=str).replace('\n', '')
|
||||
f.write(err_json)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user