runnable 0.23.0__py3-none-any.whl → 0.24.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runnable/cli.py +8 -4
- runnable/utils.py +5 -1
- {runnable-0.23.0.dist-info → runnable-0.24.0.dist-info}/METADATA +1 -1
- {runnable-0.23.0.dist-info → runnable-0.24.0.dist-info}/RECORD +7 -7
- {runnable-0.23.0.dist-info → runnable-0.24.0.dist-info}/WHEEL +0 -0
- {runnable-0.23.0.dist-info → runnable-0.24.0.dist-info}/entry_points.txt +0 -0
- {runnable-0.23.0.dist-info → runnable-0.24.0.dist-info}/licenses/LICENSE +0 -0
runnable/cli.py
CHANGED
@@ -64,8 +64,9 @@ def execute(
|
|
64
64
|
tag: Annotated[str, typer.Option(help="A tag attached to the run")] = "",
|
65
65
|
run_id: Annotated[
|
66
66
|
str,
|
67
|
-
typer.
|
68
|
-
|
67
|
+
typer.Argument(
|
68
|
+
envvar="RUNNABLE_RUN_ID",
|
69
|
+
help="An optional run_id, one would be generated if its not provided",
|
69
70
|
),
|
70
71
|
] = "",
|
71
72
|
):
|
@@ -282,8 +283,11 @@ def execute_job(
|
|
282
283
|
],
|
283
284
|
run_id: Annotated[
|
284
285
|
str,
|
285
|
-
typer.Argument(
|
286
|
-
|
286
|
+
typer.Argument(
|
287
|
+
envvar="RUNNABLE_RUN_ID",
|
288
|
+
help="An optional run_id, one would be generated if its not provided",
|
289
|
+
),
|
290
|
+
] = "",
|
287
291
|
config_file: Annotated[
|
288
292
|
str,
|
289
293
|
typer.Option(
|
runnable/utils.py
CHANGED
@@ -77,7 +77,11 @@ def generate_run_id(run_id: str = "") -> str:
|
|
77
77
|
Returns:
|
78
78
|
str: A generated run_id
|
79
79
|
"""
|
80
|
-
# If we are not provided with a run_id,
|
80
|
+
# If we are not provided with a run_id, check env var
|
81
|
+
if not run_id:
|
82
|
+
run_id = os.environ.get(defaults.ENV_RUN_ID, "")
|
83
|
+
|
84
|
+
# If both are not given, generate one
|
81
85
|
if not run_id:
|
82
86
|
now = datetime.now()
|
83
87
|
run_id = f"{names.get_random_name()}-{now.hour:02}{now.minute:02}"
|
@@ -34,7 +34,7 @@ extensions/secrets/dotenv.py,sha256=FbYYd_pVuJuVuIDIvXbzKuSSQ9GPq7xJXTDbJMTQbhM,
|
|
34
34
|
extensions/secrets/pyproject.toml,sha256=mLJNImNcBlbLKHh-0ugVWT9V83R4RibyyYDtBCSqVF4,282
|
35
35
|
runnable/__init__.py,sha256=n14AnTUUEYxXlTJ6-YLT0tMmeFb7Co_3kNldV6pgKSs,662
|
36
36
|
runnable/catalog.py,sha256=b9N40kTv1IBidzlWjkHcBGyYhq6qIDHZfBuFenzjsMI,4924
|
37
|
-
runnable/cli.py,sha256=
|
37
|
+
runnable/cli.py,sha256=4bEqXXh1sdkgJo5_2S9Sy260WbLoM2hofRnpeN4cfaA,8786
|
38
38
|
runnable/context.py,sha256=by5uepmuCP0dmM9BmsliXihSes5QEFejwAsmekcqylE,1388
|
39
39
|
runnable/datastore.py,sha256=9y5enzn6AXLHLdwvgkdjGPrBkVlrcjfbaAHsst-lJzg,32466
|
40
40
|
runnable/defaults.py,sha256=3o9IVGryyCE6PoQTOoaIaHHTbJGEzmdXMcwzOhwAYoI,3518
|
@@ -49,9 +49,9 @@ runnable/pickler.py,sha256=ydJ_eti_U1F4l-YacFp7BWm6g5vTn04UXye25S1HVok,2684
|
|
49
49
|
runnable/sdk.py,sha256=T1nqDpLN9fULvvU9L-oY0EHqYdKUI9qk7oekLynm02Y,33568
|
50
50
|
runnable/secrets.py,sha256=PXcEJw-4WPzeWRLfsatcPPyr1zkqgHzdRWRcS9vvpvM,2354
|
51
51
|
runnable/tasks.py,sha256=YVKpKxSpsRZWcU3MOqoBoqxeo1XSqv5crkOu6kyu63o,28520
|
52
|
-
runnable/utils.py,sha256=
|
53
|
-
runnable-0.
|
54
|
-
runnable-0.
|
55
|
-
runnable-0.
|
56
|
-
runnable-0.
|
57
|
-
runnable-0.
|
52
|
+
runnable/utils.py,sha256=hJUfRmIgU20weWPmBOHF22F6svBU0A_0nqifRMuXKs0,19822
|
53
|
+
runnable-0.24.0.dist-info/METADATA,sha256=k4SpZ9SjbDI1xtJK6vV3JGJYWPPbRSJnE1mMtA3YJnE,9945
|
54
|
+
runnable-0.24.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
55
|
+
runnable-0.24.0.dist-info/entry_points.txt,sha256=seek5WVGvwYALm8lZ0TfPXwG5NaCeUKjU8urF8k3gvY,1621
|
56
|
+
runnable-0.24.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
57
|
+
runnable-0.24.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|