bolt icon indicating copy to clipboard operation
bolt copied to clipboard

When running with PCP transport, include associated orchestrator job ID in job results

Open ALawley opened this issue 3 years ago • 2 comments

Use Case

Currently cd4pe runs its jobs by hitting a containerized bolt and using bolt's pcp transport to run via the orchestrator. This indirection means that we can't associate the orchestrator job ids within PE with the cd4pe jobs that they were run as part of, making cd4pe jobs difficult to troubleshoot for support. Ideally we'd like to be able to retrieve these within cd4pe when we run via bolt, letting us log the associated orchestrator job IDs, as well as potentially include them as a field on the cd4pe job.

Describe the Solution You Would Like

When bolt runs a job using pcp transport, return the associated job ID in bolt's results output.

Describe Alternatives You've Considered

The ideal solution here is likely to simplify the architecture of cd4pe jobs and just run directly against the orchestrator rather than using bolt as a middleman. This is something we'll likely want to consider at some point when the team has bandwidth, but represents a much larger chunk of work, and for now we're just trying to make quick improvements to the product's supportability.

ALawley avatar Jul 14 '22 18:07 ALawley

Is adding an optional _transport key to results that contains information like this a reasonable solution?

adreyer avatar Jul 21 '22 19:07 adreyer

That should work

ALawley avatar Jul 25 '22 17:07 ALawley

This issue has not had activity for 60 days and will be marked as stale. If this issue continues to have no activity for 7 days, it will be closed.

github-actions[bot] avatar Sep 24 '22 00:09 github-actions[bot]

This issue is stale and has been closed. If you believe this is in error, or would like the Bolt team to reconsider it, please reopen the issue.

github-actions[bot] avatar Oct 01 '22 00:10 github-actions[bot]