primitive 0.2.34__py3-none-any.whl → 0.2.35__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.
- primitive/__about__.py +1 -1
- primitive/agent/actions.py +1 -1
- primitive/agent/runner.py +9 -1
- {primitive-0.2.34.dist-info → primitive-0.2.35.dist-info}/METADATA +1 -1
- {primitive-0.2.34.dist-info → primitive-0.2.35.dist-info}/RECORD +8 -8
- {primitive-0.2.34.dist-info → primitive-0.2.35.dist-info}/WHEEL +0 -0
- {primitive-0.2.34.dist-info → primitive-0.2.35.dist-info}/entry_points.txt +0 -0
- {primitive-0.2.34.dist-info → primitive-0.2.35.dist-info}/licenses/LICENSE.txt +0 -0
primitive/__about__.py
CHANGED
primitive/agent/actions.py
CHANGED
primitive/agent/runner.py
CHANGED
@@ -261,7 +261,9 @@ class Runner:
|
|
261
261
|
return number_of_files_produced
|
262
262
|
|
263
263
|
async def run_task(self, task: Task) -> bool:
|
264
|
-
|
264
|
+
logger.info(f"Running step '{task['label']}'")
|
265
|
+
commands = task["cmd"].strip().split("\n")
|
266
|
+
for i, cmd in enumerate(commands):
|
265
267
|
# Adding an additional echo and utilizing stdbuf to force line buffering
|
266
268
|
# This ensures that the environment variables and starting delimiter are
|
267
269
|
# always in a new chunk, vastly simplifying our parsing logic
|
@@ -271,6 +273,8 @@ class Runner:
|
|
271
273
|
f"{cmd} && echo -n '{ENV_VAR_LOOKUP_START}' && env && echo -n '{ENV_VAR_LOOKUP_END}'",
|
272
274
|
]
|
273
275
|
|
276
|
+
logger.info(f"Executing command {i + 1}/{len(commands)}: {cmd}")
|
277
|
+
|
274
278
|
process = await asyncio.create_subprocess_exec(
|
275
279
|
*args,
|
276
280
|
env=self.modified_env,
|
@@ -294,6 +298,10 @@ class Runner:
|
|
294
298
|
|
295
299
|
returncode = await process.wait()
|
296
300
|
|
301
|
+
logger.info(
|
302
|
+
f"Finished executing command {i + 1}/{len(commands)}: {cmd} with return code {returncode}"
|
303
|
+
)
|
304
|
+
|
297
305
|
JobRun.objects.filter_by(job_run_id=self.job_run["id"]).update(
|
298
306
|
{"pid": None}
|
299
307
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.35
|
4
4
|
Project-URL: Documentation, https://github.com//primitivecorp/primitive-cli#readme
|
5
5
|
Project-URL: Issues, https://github.com//primitivecorp/primitive-cli/issues
|
6
6
|
Project-URL: Source, https://github.com//primitivecorp/primitive-cli
|
@@ -1,11 +1,11 @@
|
|
1
|
-
primitive/__about__.py,sha256=
|
1
|
+
primitive/__about__.py,sha256=hEyqfjOzciSUTNTdMBjYfDhPQ78HUi4rV_w9imBssec,130
|
2
2
|
primitive/__init__.py,sha256=bwKdgggKNVssJFVPfKSxqFMz4IxSr54WWbmiZqTMPNI,106
|
3
3
|
primitive/cli.py,sha256=g7EtHI9MATAB0qQu5w-WzbXtxz_8zu8z5E7sETmMkKU,2509
|
4
4
|
primitive/client.py,sha256=h8WZVnQylVe0vbpuyC8YZHl2JyITSPC-1HbUcmrE5pc,3623
|
5
5
|
primitive/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
primitive/agent/actions.py,sha256=
|
6
|
+
primitive/agent/actions.py,sha256=VHlNTw2M-T1MRajpIBu2weT8AsdDdYtlgbBnRBYYeco,3692
|
7
7
|
primitive/agent/commands.py,sha256=cK7d3OcN5Z65gQWVZFQ-Y9ddw9Pes4f9OVBpeMsj5sE,255
|
8
|
-
primitive/agent/runner.py,sha256=
|
8
|
+
primitive/agent/runner.py,sha256=u1uEJiXUi2ps7wHFYo5iOW4WURo4ObnApUbzhsG-6AU,15784
|
9
9
|
primitive/agent/uploader.py,sha256=ZzrzsajNBogwEC7mT6Ejy0h2Jd9axMYGzt9pbCvVMlk,3171
|
10
10
|
primitive/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
primitive/auth/actions.py,sha256=9NIEXJ1BNJutJs6AMMSjMN_ziONUAUhY_xHwojYJCLA,942
|
@@ -96,8 +96,8 @@ primitive/utils/memory_size.py,sha256=4xfha21kW82nFvOTtDFx9Jk2ZQoEhkfXii-PGNTpIU
|
|
96
96
|
primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,370
|
97
97
|
primitive/utils/shell.py,sha256=Z4zxmOaSyGCrS0D6I436iQci-ewHLt4UxVg1CD9Serc,2171
|
98
98
|
primitive/utils/text.py,sha256=XiESMnlhjQ534xE2hMNf08WehE1SKaYFRNih0MmnK0k,829
|
99
|
-
primitive-0.2.
|
100
|
-
primitive-0.2.
|
101
|
-
primitive-0.2.
|
102
|
-
primitive-0.2.
|
103
|
-
primitive-0.2.
|
99
|
+
primitive-0.2.35.dist-info/METADATA,sha256=PLtjAKPLgi5K7IkgS3mqqeroGABE4fnmDTnSLYZE0P4,3569
|
100
|
+
primitive-0.2.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
101
|
+
primitive-0.2.35.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
|
102
|
+
primitive-0.2.35.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
|
103
|
+
primitive-0.2.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|