We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51cd688 commit 176a805Copy full SHA for 176a805
1 file changed
openhexa/sdk/pipelines/run.py
@@ -20,6 +20,13 @@ class CurrentRun:
20
def _connected(self):
21
return "HEXA_SERVER_URL" in os.environ
22
23
+ def id(self):
24
+ """Exposes pipeline run id."""
25
+ if "HEXA_RUN_ID" in os.environ:
26
+ return os.environ["HEXA_RUN_ID"]
27
+ else:
28
+ raise RuntimeError("Current run ID is not set. Make sure you are running this in a pipeline context.")
29
+
30
def add_file_output(self, path: str):
31
"""Record a run output for a file creation operation.
32
0 commit comments