supervisely 6.73.333__py3-none-any.whl → 6.73.334__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.
@@ -710,12 +710,19 @@ class Inference:
710
710
  self._deploy_params = deploy_params
711
711
  try:
712
712
  if self.autorestart is None:
713
- logger.debug("Autorestart info is not set. Creating new one.")
714
713
  self.autorestart = AutoRestartInfo(self._deploy_params)
715
714
  self.api.task.set_fields(self._task_id, self.autorestart.generate_fields())
715
+ logger.debug(
716
+ "Created new autorestart info.",
717
+ extra=self.autorestart.deploy_params,
718
+ )
716
719
  elif self.autorestart.is_changed(self._deploy_params):
717
- logger.debug("Autorestart info is changed. Updating.")
718
720
  self.autorestart.deploy_params.update(self._deploy_params)
721
+ self.api.task.set_fields(self._task_id, self.autorestart.generate_fields())
722
+ logger.debug(
723
+ "Autorestart info is changed. Parameters have been updated.",
724
+ extra=self.autorestart.deploy_params,
725
+ )
719
726
  except Exception as e:
720
727
  logger.warning(f"Failed to update autorestart info: {repr(e)}")
721
728
  if self.gui is not None:
@@ -2529,13 +2536,12 @@ class Inference:
2529
2536
 
2530
2537
  try:
2531
2538
  if self._task_id is not None:
2532
- logger.debug("Checking autorestart info...")
2533
2539
  response = self.api.task.get_fields(
2534
2540
  self._task_id, [AutoRestartInfo.Fields.AUTO_RESTART_INFO]
2535
2541
  )
2536
2542
  self.autorestart = AutoRestartInfo.from_response(response)
2537
2543
  if self.autorestart is not None:
2538
- logger.debug("Autorestart info:", extra=self.autorestart.deploy_params)
2544
+ logger.debug("Autorestart info is set.", extra=self.autorestart.deploy_params)
2539
2545
  self._deploy_on_autorestart()
2540
2546
  else:
2541
2547
  logger.debug("Autorestart info is not set.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.333
3
+ Version: 6.73.334
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -883,7 +883,7 @@ supervisely/nn/benchmark/visualization/widgets/table/__init__.py,sha256=47DEQpj8
883
883
  supervisely/nn/benchmark/visualization/widgets/table/table.py,sha256=atmDnF1Af6qLQBUjLhK18RMDKAYlxnsuVHMSEa5a-e8,4319
884
884
  supervisely/nn/inference/__init__.py,sha256=QFukX2ip-U7263aEPCF_UCFwj6EujbMnsgrXp5Bbt8I,1623
885
885
  supervisely/nn/inference/cache.py,sha256=LAirR5mFHCtK59EO1lefQ2qhpp0vBvRTH26EVrs13Y0,32073
886
- supervisely/nn/inference/inference.py,sha256=pIylesTNxmhnJqd3sd5cs9QjAew2wPuqH63KOlimOqA,169495
886
+ supervisely/nn/inference/inference.py,sha256=dzfvHjisVYgsijnHYazb_y0mXYZQJX0E1fEsDY6S5lw,169730
887
887
  supervisely/nn/inference/session.py,sha256=jmkkxbe2kH-lEgUU6Afh62jP68dxfhF5v6OGDfLU62E,35757
888
888
  supervisely/nn/inference/video_inference.py,sha256=8Bshjr6rDyLay5Za8IB8Dr6FURMO2R_v7aELasO8pR4,5746
889
889
  supervisely/nn/inference/gui/__init__.py,sha256=wCxd-lF5Zhcwsis-wScDA8n1Gk_1O00PKgDviUZ3F1U,221
@@ -1082,9 +1082,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1082
1082
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1083
1083
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1084
1084
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1085
- supervisely-6.73.333.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1086
- supervisely-6.73.333.dist-info/METADATA,sha256=dYUKmQZXH6UwwNCIKAYsS0ycDRlPKEpcUlBM7q6djPU,33596
1087
- supervisely-6.73.333.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1088
- supervisely-6.73.333.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1089
- supervisely-6.73.333.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1090
- supervisely-6.73.333.dist-info/RECORD,,
1085
+ supervisely-6.73.334.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1086
+ supervisely-6.73.334.dist-info/METADATA,sha256=jD55cUT6bmdvsvTMuPD3Jt61Aus-DzBZciz5C5VO2HA,33596
1087
+ supervisely-6.73.334.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1088
+ supervisely-6.73.334.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1089
+ supervisely-6.73.334.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1090
+ supervisely-6.73.334.dist-info/RECORD,,