Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

feature/Stale-requestid-docstring · L-260927-1ea196 (#1290)

Louis Choquelc2eb82c5e667
diff --git a/pipelex/pipeline/pipeline_run_setup.py b/pipelex/pipeline/pipeline_run_setup.py
index ba002d36f..44fc45a53 100644
--- a/pipelex/pipeline/pipeline_run_setup.py
+++ b/pipelex/pipeline/pipeline_run_setup.py
@@ -143,7 +143,7 @@ async def pipeline_run_setup(
Optional inbound ``X-Request-ID`` from the dispatcher (the value the
external HTTP caller can use to correlate every log line and every
``ErrorReport`` back to its originating request). Threaded onto
- :class:`pipelex.system.job_metadata.JobMetadata.request_id` so it
+ :attr:`pipelex.system.job_metadata.RunMetadata.request_id` so it
crosses the Temporal serialization boundary intact.
inputs_base_dir:
Directory that bare *relative local* file paths in ``inputs`` resolve against (Smart
diff --git a/tests/unit/pipelex/system/test_job_metadata_request_id.py b/tests/unit/pipelex/system/test_job_metadata_request_id.py
index 30b993051..72c199056 100644
--- a/tests/unit/pipelex/system/test_job_metadata_request_id.py
+++ b/tests/unit/pipelex/system/test_job_metadata_request_id.py
@@ -1,5 +1,6 @@
-"""Unit tests for ``JobMetadata.request_id`` — the API-inbound ``X-Request-ID``
-that rides the workflow input across the Temporal serialization boundary.
+"""Unit tests for ``RunMetadata.request_id`` — the API-inbound ``X-Request-ID``
+that rides the workflow input across the Temporal serialization boundary,
+reached from a ``JobMetadata`` through its ``run_metadata``.
"""
import pytest
@@ -10,7 +11,7 @@ from pipelex.system.job_metadata import JobMetadata, RunMetadata
class TestJobMetadataRequestId:
def test_request_id_defaults_to_none(self) -> None:
- """``JobMetadata`` constructed without ``request_id`` carries ``None``."""
+ """A ``RunMetadata`` constructed without ``request_id`` carries ``None``."""
meta = JobMetadata(run_metadata=RunMetadata(storage_scope="test/scope", user_id="u", pipeline_run_id="r"))
assert meta.run_metadata.request_id is None