Skip to content

Worker: support workOrderId on meta object - #1500

Merged
doc-han merged 6 commits into
mainfrom
worker-metadata
Aug 14, 2026
Merged

Worker: support workOrderId on meta object#1500
doc-han merged 6 commits into
mainfrom
worker-metadata

Conversation

@josephjclark

Copy link
Copy Markdown
Collaborator

This PR extends the meta global in a run by adding workOrderId, workflowId and projectId. These are appended to the run by lightning.

It is safe to run against main - users simply wont see the metadata.

The docker image will be built and uploaded to dockerhub after merging to main

AI Usage

Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

A leftover debug statement dumped every run plan - job code, credential
ids, dataclip id - to the worker's stdout on every claim.
The test asserted workorderId against a run.meta.workorder_id that
nothing sets, so it failed and broke the type check. project_id is
already on the plan, so meta.projectId can work against any Lightning
version, and the ids are left off entirely when Lightning doesn't send
them.
@elias-ba
elias-ba self-requested a review August 14, 2026 16:41
@doc-han
doc-han merged commit a14fce7 into main Aug 14, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from New Issues to Done in Core Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants