pybiolib 1.1.1360__py3-none-any.whl → 1.1.1365__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.
- biolib/app/app.py +11 -6
- biolib/biolib_api_client/biolib_job_api.py +4 -0
- {pybiolib-1.1.1360.dist-info → pybiolib-1.1.1365.dist-info}/METADATA +1 -1
- {pybiolib-1.1.1360.dist-info → pybiolib-1.1.1365.dist-info}/RECORD +7 -7
- {pybiolib-1.1.1360.dist-info → pybiolib-1.1.1365.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.1360.dist-info → pybiolib-1.1.1365.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.1360.dist-info → pybiolib-1.1.1365.dist-info}/entry_points.txt +0 -0
biolib/app/app.py
CHANGED
@@ -55,6 +55,7 @@ class BioLibApp:
|
|
55
55
|
experiment_id: Optional[str] = None,
|
56
56
|
result_prefix: Optional[str] = None,
|
57
57
|
timeout: Optional[int] = None,
|
58
|
+
notify: bool = False,
|
58
59
|
) -> Job:
|
59
60
|
if not experiment_id:
|
60
61
|
experiment = Experiment.get_experiment_in_context()
|
@@ -78,9 +79,10 @@ class BioLibApp:
|
|
78
79
|
experiment_id=experiment_id,
|
79
80
|
machine=machine,
|
80
81
|
module_input_serialized=module_input_serialized,
|
82
|
+
notify=notify,
|
81
83
|
override_command=override_command,
|
82
84
|
result_prefix=result_prefix,
|
83
|
-
timeout=timeout
|
85
|
+
timeout=timeout,
|
84
86
|
)
|
85
87
|
if blocking:
|
86
88
|
# TODO: Deprecate utils.STREAM_STDOUT and always stream logs by simply calling job.stream_logs()
|
@@ -201,26 +203,29 @@ Example: "app.cli('--help')"
|
|
201
203
|
experiment_id: Optional[str] = None,
|
202
204
|
result_prefix: Optional[str] = None,
|
203
205
|
timeout: Optional[int] = None,
|
206
|
+
notify: bool = False,
|
204
207
|
) -> Job:
|
205
208
|
if len(module_input_serialized) < 500_000:
|
206
209
|
_job_dict = BiolibJobApi.create_job_with_data(
|
207
|
-
app_version_uuid=self._app_version['public_id'],
|
208
210
|
app_resource_name_prefix=parse_app_uri(self._app_uri)['resource_name_prefix'],
|
211
|
+
app_version_uuid=self._app_version['public_id'],
|
209
212
|
arguments_override_command=override_command,
|
210
213
|
experiment_uuid=experiment_id,
|
211
214
|
module_input_serialized=module_input_serialized,
|
215
|
+
notify=notify,
|
212
216
|
requested_machine=machine,
|
213
|
-
result_name_prefix=result_prefix,
|
214
217
|
requested_timeout_seconds=timeout,
|
218
|
+
result_name_prefix=result_prefix,
|
215
219
|
)
|
216
220
|
return Job(cast(JobDict, _job_dict))
|
217
221
|
|
218
222
|
job_dict: CreatedJobDict = BiolibJobApi.create(
|
219
|
-
app_version_id=self._app_version['public_id'],
|
220
223
|
app_resource_name_prefix=parse_app_uri(self._app_uri)['resource_name_prefix'],
|
221
|
-
|
222
|
-
machine=machine,
|
224
|
+
app_version_id=self._app_version['public_id'],
|
223
225
|
experiment_uuid=experiment_id,
|
226
|
+
machine=machine,
|
227
|
+
notify=notify,
|
228
|
+
override_command=override_command,
|
224
229
|
timeout=timeout,
|
225
230
|
)
|
226
231
|
JobStorage.upload_module_input(job=job_dict, module_input_serialized=module_input_serialized)
|
@@ -49,10 +49,12 @@ class BiolibJobApi:
|
|
49
49
|
machine='',
|
50
50
|
experiment_uuid: Optional[str] = None,
|
51
51
|
timeout: Optional[int] = None,
|
52
|
+
notify: bool = False,
|
52
53
|
):
|
53
54
|
data = {
|
54
55
|
'app_version_id': app_version_id,
|
55
56
|
'client_type': 'biolib-python',
|
57
|
+
'notify': notify,
|
56
58
|
'client_version': BIOLIB_PACKAGE_VERSION,
|
57
59
|
'client_opt_user_info': _get_user_info(),
|
58
60
|
}
|
@@ -182,6 +184,7 @@ class BiolibJobApi:
|
|
182
184
|
result_name_prefix: Optional[str],
|
183
185
|
caller_job_uuid: Optional[str] = None,
|
184
186
|
requested_timeout_seconds: Optional[int] = None,
|
187
|
+
notify: bool = False,
|
185
188
|
) -> Dict:
|
186
189
|
job_dict: Dict = biolib.api.client.post(
|
187
190
|
path='/jobs/create_job_with_data/',
|
@@ -199,6 +202,7 @@ class BiolibJobApi:
|
|
199
202
|
'requested-machine': requested_machine,
|
200
203
|
'result-name-prefix': result_name_prefix,
|
201
204
|
'requested-timeout-seconds': str(requested_timeout_seconds) if requested_timeout_seconds else None,
|
205
|
+
'notify': 'true' if notify else 'false',
|
202
206
|
}
|
203
207
|
).json()
|
204
208
|
return job_dict
|
@@ -4,7 +4,7 @@ biolib/__init__.py,sha256=yoQA2fWt8aToFas3sx6UIoFBW7-dd2yf7Nyi5smQl88,3418
|
|
4
4
|
biolib/api/__init__.py,sha256=fhsbqVxDYfQ2NMYKkFW-msplAa1YPllfKEkAtLdD9IM,95
|
5
5
|
biolib/api/client.py,sha256=ie_h071Qc1CO7DkMdX_Mq1BcwWIqtsJaNHyJa9U4dAk,4954
|
6
6
|
biolib/app/__init__.py,sha256=cdPtcfb_U-bxb9iSL4fCEq2rpD9OjkyY4W-Zw60B0LI,37
|
7
|
-
biolib/app/app.py,sha256=
|
7
|
+
biolib/app/app.py,sha256=6V_36uqwiC5ERtv2wU7J3KxbV9dKxMlKugx15ylSsTY,10186
|
8
8
|
biolib/app/search_apps.py,sha256=22rJ_vIxA5GKC6wdDIAjMCe5eOPoPD4BYZuyQ0OddW8,1493
|
9
9
|
biolib/biolib_api_client/__init__.py,sha256=E5EMa19wJoblwSdQPYrxc_BtIeRsAuO0L_jQweWw-Yk,182
|
10
10
|
biolib/biolib_api_client/api_client.py,sha256=4H1lFXWTm-MGmgP8wEHWWzLH_YGnCVx1aQJX0H2PFDg,7092
|
@@ -12,7 +12,7 @@ biolib/biolib_api_client/app_types.py,sha256=vEjkpMwaMfz8MxBBZQfWCkxqT7NXxWocB_O
|
|
12
12
|
biolib/biolib_api_client/auth.py,sha256=mmfeH1ujDRH3_RodqagYtPAfCbFe4SYtJGuFeJzK-UQ,1668
|
13
13
|
biolib/biolib_api_client/biolib_account_api.py,sha256=2Mc6SbmjBSsz8lF2H3iiaZHEm47LyI0B4rjmvzxKHt4,580
|
14
14
|
biolib/biolib_api_client/biolib_app_api.py,sha256=PhADxWkzwwqO5xFpSuYoePoWwtn8D5q8VZCRqFv49s8,3792
|
15
|
-
biolib/biolib_api_client/biolib_job_api.py,sha256=
|
15
|
+
biolib/biolib_api_client/biolib_job_api.py,sha256=_LYuE6KGeW_Fcr9lhHfHFfwZEvjsp--oabaZtksDi04,7859
|
16
16
|
biolib/biolib_api_client/biolib_large_file_system_api.py,sha256=5q4UlRw-OB2bRu7CeB14fy-azz2YeSgem5DbvMSaS44,1777
|
17
17
|
biolib/biolib_api_client/common_types.py,sha256=RH-1KNHqUF-EkTpfPOSTt5Mq1GPdfju_cqXDesscO1I,123
|
18
18
|
biolib/biolib_api_client/job_types.py,sha256=iAVWY7wHnJAPbbFf8_f0LzfYHb2jTaqCH-eaQ-WeXOc,1256
|
@@ -96,8 +96,8 @@ biolib/utils/cache_state.py,sha256=BFrZlV4XZIueIFzAFiPidX4hmwADKY5Y5ZuqlerF5l0,3
|
|
96
96
|
biolib/utils/multipart_uploader.py,sha256=Bf09MJcIOBwzG8L1i5UeQ2cNcYohxklhhWWAMpnE41I,9671
|
97
97
|
biolib/utils/seq_util.py,sha256=QRLYIPg1yM_LF9bFuM-Ow14gTHoG3rOK6CeGHD705qw,2612
|
98
98
|
biolib/utils/zip/remote_zip.py,sha256=NCdUnVbGCv7SfXCI-yVU-is_OnyWmLAnVpIdSvo-W4k,23500
|
99
|
-
pybiolib-1.1.
|
100
|
-
pybiolib-1.1.
|
101
|
-
pybiolib-1.1.
|
102
|
-
pybiolib-1.1.
|
103
|
-
pybiolib-1.1.
|
99
|
+
pybiolib-1.1.1365.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
100
|
+
pybiolib-1.1.1365.dist-info/METADATA,sha256=GeLdiy1z5oF6ysV3w2xXTULLl6jtD14kSI7IXNbrE-s,1492
|
101
|
+
pybiolib-1.1.1365.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
102
|
+
pybiolib-1.1.1365.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
103
|
+
pybiolib-1.1.1365.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|