primitive 0.2.54__py3-none-any.whl → 0.2.57__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 +4 -4
- primitive/jobs/graphql/fragments.py +1 -0
- primitive/monitor/actions.py +1 -1
- {primitive-0.2.54.dist-info → primitive-0.2.57.dist-info}/METADATA +1 -1
- {primitive-0.2.54.dist-info → primitive-0.2.57.dist-info}/RECORD +9 -9
- {primitive-0.2.54.dist-info → primitive-0.2.57.dist-info}/WHEEL +0 -0
- {primitive-0.2.54.dist-info → primitive-0.2.57.dist-info}/entry_points.txt +0 -0
- {primitive-0.2.54.dist-info → primitive-0.2.57.dist-info}/licenses/LICENSE.txt +0 -0
primitive/__about__.py
CHANGED
primitive/agent/actions.py
CHANGED
@@ -116,7 +116,7 @@ class Agent(BaseAction):
|
|
116
116
|
or job_run_status == "completed"
|
117
117
|
):
|
118
118
|
logger.error(
|
119
|
-
f"JobRun {job_run_data.get('
|
119
|
+
f"JobRun {job_run_data.get('jobRunNumber')} is already completed with status {job_run_data.get('status', 'unknown')} conclusion {job_run_data.get('conclusion', 'unknown')}. Exiting."
|
120
120
|
)
|
121
121
|
break
|
122
122
|
|
@@ -164,9 +164,9 @@ class Agent(BaseAction):
|
|
164
164
|
# This should probably eventually be another daemon?
|
165
165
|
uploader.scan()
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
if RUNNING_IN_CONTAINER:
|
168
|
+
logger.info("Running in container, exiting after job run")
|
169
|
+
break
|
170
170
|
|
171
171
|
sleep(5)
|
172
172
|
except KeyboardInterrupt:
|
primitive/monitor/actions.py
CHANGED
@@ -172,7 +172,7 @@ class Monitor(BaseAction):
|
|
172
172
|
status_value = status_result.data["jobRun"]["status"]
|
173
173
|
parent_pid = status_result.data["jobRun"]["parentPid"]
|
174
174
|
|
175
|
-
if status_value
|
175
|
+
if status_value in ["request_completed", "completed"]:
|
176
176
|
logger.info(
|
177
177
|
f"Job run {job_run_id} is completed. Killing children if they exist."
|
178
178
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: primitive
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.57
|
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,9 +1,9 @@
|
|
1
|
-
primitive/__about__.py,sha256=
|
1
|
+
primitive/__about__.py,sha256=cDEWXb9BZdVtt8aKIxF1WZw-mD4ABL_QS4Vz6YUcy3A,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=RMF46F89oK82gfZH6Bf0WZrhXPUu01pbieSO_Vcuoc4,3624
|
5
5
|
primitive/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
primitive/agent/actions.py,sha256
|
6
|
+
primitive/agent/actions.py,sha256=f1sSDdFHOflfGQCwNJ5P51YWUTKs8EK5YXbMAvZ-KMM,8018
|
7
7
|
primitive/agent/commands.py,sha256=o847pK7v7EWQGG67tky6a33qtwoutX6LZrP2FIS_NOk,388
|
8
8
|
primitive/agent/runner.py,sha256=1ceYsEY1mYTLzvsm3vIT8UgohxyvEQZVrErFci5rcM0,11648
|
9
9
|
primitive/agent/uploader.py,sha256=DT_Nzt5eOTm_uRcYKm1sjBBaQZzp5iNZ_uN5XktfQ30,3382
|
@@ -51,10 +51,10 @@ primitive/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
primitive/jobs/actions.py,sha256=Fej-rpdfIiHjs0SEFY2ZcMn64AWHn6kD90RC5wtRM3Q,6531
|
52
52
|
primitive/jobs/commands.py,sha256=MxPCkBEYW_eLNqgCRYeyj7ZcLOFAWfpVZlqDR2Y_S0o,830
|
53
53
|
primitive/jobs/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
|
-
primitive/jobs/graphql/fragments.py,sha256=
|
54
|
+
primitive/jobs/graphql/fragments.py,sha256=DJKsvt59dYbyXiXrFZB_1NMuamRLaeR-oBu-9P7aq0M,684
|
55
55
|
primitive/jobs/graphql/mutations.py,sha256=8ASvCmwQh7cMeeiykOdYaYVryG8FRIuVF6v_J8JJZuw,219
|
56
56
|
primitive/jobs/graphql/queries.py,sha256=ZxNmm-WovytbggNuKRnwa0kc26T34_0yhqkoqx-2uj0,1736
|
57
|
-
primitive/monitor/actions.py,sha256=
|
57
|
+
primitive/monitor/actions.py,sha256=coGEQkKvkTRO0Zgii4hQOTSk1wa9HkVFDn4OiEJ20r4,9581
|
58
58
|
primitive/monitor/commands.py,sha256=VDlEL_Qpm_ysHxug7VpI0cVAZ0ny6AS91Y58D7F1zkU,409
|
59
59
|
primitive/organizations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
60
60
|
primitive/organizations/actions.py,sha256=kVHOhG1oS2sI5p8uldSo5L-RUZsnG36eaulVuKLyZ-M,1863
|
@@ -95,8 +95,8 @@ primitive/utils/printer.py,sha256=f1XUpqi5dkTL3GWvYRUGlSwtj2IxU1q745T4Fxo7Tn4,37
|
|
95
95
|
primitive/utils/psutil.py,sha256=xa7ef435UL37jyjmUPbEqCO2ayQMpCs0HCrxVEvLcuM,763
|
96
96
|
primitive/utils/shell.py,sha256=Z4zxmOaSyGCrS0D6I436iQci-ewHLt4UxVg1CD9Serc,2171
|
97
97
|
primitive/utils/text.py,sha256=XiESMnlhjQ534xE2hMNf08WehE1SKaYFRNih0MmnK0k,829
|
98
|
-
primitive-0.2.
|
99
|
-
primitive-0.2.
|
100
|
-
primitive-0.2.
|
101
|
-
primitive-0.2.
|
102
|
-
primitive-0.2.
|
98
|
+
primitive-0.2.57.dist-info/METADATA,sha256=hv8Qi897IB5ogOUPwKVZpoyLjYp66qTeR4_x3Q6wekI,3513
|
99
|
+
primitive-0.2.57.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
100
|
+
primitive-0.2.57.dist-info/entry_points.txt,sha256=p1K8DMCWka5FqLlqP1sPek5Uovy9jq8u51gUsP-z334,48
|
101
|
+
primitive-0.2.57.dist-info/licenses/LICENSE.txt,sha256=B8kmQMJ2sxYygjCLBk770uacaMci4mPSoJJ8WoDBY_c,1098
|
102
|
+
primitive-0.2.57.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|