pybiolib 1.1.2097__py3-none-any.whl → 1.1.2109__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.
@@ -270,6 +270,8 @@ class DockerExecutor:
270
270
  # TODO: type this method
271
271
  def _initialize_docker_container(self, module_input):
272
272
  try:
273
+ job_uuid = self._options['job']['public_id']
274
+ logger_no_user_data.debug(f'Job "{job_uuid}" initializing Docker container...')
273
275
  module = self._options['module']
274
276
  logger.debug(f"Initializing docker container with command: {module['command']}")
275
277
 
@@ -314,6 +316,7 @@ class DockerExecutor:
314
316
  }
315
317
  )
316
318
 
319
+ logger_no_user_data.debug(f'Job "{job_uuid}" initializing Docker container. Getting IPs for proxies...')
317
320
  for proxy in self._options['remote_host_proxies']:
318
321
  proxy_ip = proxy.get_ip_address_on_network(internal_network)
319
322
  if proxy.is_app_caller_proxy:
@@ -332,6 +335,7 @@ class DockerExecutor:
332
335
  else:
333
336
  extra_hosts[proxy.hostname] = proxy_ip
334
337
 
338
+ logger_no_user_data.debug(f'Job "{job_uuid}" initializing Docker container. Constructing container args...')
335
339
  create_container_args = {
336
340
  'environment': environment_vars,
337
341
  'extra_hosts': extra_hosts,
@@ -368,9 +372,10 @@ class DockerExecutor:
368
372
  if docker_runtime is not None:
369
373
  create_container_args['runtime'] = docker_runtime
370
374
 
371
- self._docker_container = BiolibDockerClient.get_docker_client().containers.create(**create_container_args)
372
-
373
- logger_no_user_data.debug('Finished initializing docker container')
375
+ docker_client = BiolibDockerClient.get_docker_client()
376
+ logger_no_user_data.debug(f'Job "{job_uuid}" initializing Docker container. Creating container...')
377
+ self._docker_container = docker_client.containers.create(**create_container_args)
378
+ logger_no_user_data.debug(f'Job "{job_uuid}" finished initializing Docker container.')
374
379
  except Exception as exception:
375
380
  raise ComputeProcessException(
376
381
  exception, SystemExceptionCodes.FAILED_TO_START_COMPUTE_CONTAINER.value, self._send_system_exception
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.2097
3
+ Version: 1.1.2109
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -68,7 +68,7 @@ biolib/compute_node/job_worker/cache_state.py,sha256=MwjSRzcJJ_4jybqvBL4xdgnDYSI
68
68
  biolib/compute_node/job_worker/cache_types.py,sha256=ajpLy8i09QeQS9dEqTn3T6NVNMY_YsHQkSD5nvIHccQ,818
69
69
  biolib/compute_node/job_worker/docker_image_cache.py,sha256=ansHIkJIq_EMW1nZNlW-RRLVVeKWTbzNICYaOHpKiRE,7460
70
70
  biolib/compute_node/job_worker/executors/__init__.py,sha256=bW6t1qi3PZTlHM4quaTLa8EI4ALTCk83cqcVJfJfJfE,145
71
- biolib/compute_node/job_worker/executors/docker_executor.py,sha256=81ltJvSDpCPBgbffnSQF-fiRpk_94sWZWJRcP0IW_5k,27393
71
+ biolib/compute_node/job_worker/executors/docker_executor.py,sha256=2H7GooL0oAifPcbie0unatB4fRoHyqbsr6S91uagc_g,27952
72
72
  biolib/compute_node/job_worker/executors/docker_types.py,sha256=VhsU1DKtJjx_BbCkVmiPZPH4ROiL1ygW1Y_s1Kbpa2o,216
73
73
  biolib/compute_node/job_worker/executors/tars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
74
  biolib/compute_node/job_worker/executors/types.py,sha256=yP5gG39hr-DLnw9bOE--VHi-1arDbIYiGuV1rlTbbHI,1466
@@ -111,8 +111,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
111
111
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
112
112
  biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
113
113
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
114
- pybiolib-1.1.2097.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
115
- pybiolib-1.1.2097.dist-info/METADATA,sha256=-4wEBR8SXfG_VDlLRZR7UgrlKee5VydzL-L6wMKP17Y,1508
116
- pybiolib-1.1.2097.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
117
- pybiolib-1.1.2097.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
118
- pybiolib-1.1.2097.dist-info/RECORD,,
114
+ pybiolib-1.1.2109.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
115
+ pybiolib-1.1.2109.dist-info/METADATA,sha256=Ib3gPLhMCJEEmlmAf7rgaOg4ZR2x1pQef1XCOCryito,1508
116
+ pybiolib-1.1.2109.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
117
+ pybiolib-1.1.2109.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
118
+ pybiolib-1.1.2109.dist-info/RECORD,,