matrice-compute 0.1.36__tar.gz → 0.1.37__tar.gz

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.
Files changed (24) hide show
  1. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/PKG-INFO +1 -1
  2. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/matrice_compute.egg-info/PKG-INFO +1 -1
  3. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/action_instance.py +4 -2
  4. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/LICENSE.txt +0 -0
  5. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/README.md +0 -0
  6. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/matrice_compute.egg-info/SOURCES.txt +0 -0
  7. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/matrice_compute.egg-info/dependency_links.txt +0 -0
  8. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/matrice_compute.egg-info/not-zip-safe +0 -0
  9. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/matrice_compute.egg-info/top_level.txt +0 -0
  10. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/pyproject.toml +0 -0
  11. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/setup.cfg +0 -0
  12. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/setup.py +0 -0
  13. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/__init__.py +0 -0
  14. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/actions_manager.py +0 -0
  15. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/actions_scaledown_manager.py +0 -0
  16. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/compute_operations_handler.py +0 -0
  17. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/instance_manager.py +0 -0
  18. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/instance_utils.py +0 -0
  19. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/prechecks.py +0 -0
  20. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/py.typed +0 -0
  21. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/resources_tracker.py +0 -0
  22. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/scaling.py +0 -0
  23. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/shutdown_manager.py +0 -0
  24. {matrice_compute-0.1.36 → matrice_compute-0.1.37}/src/matrice_compute/task_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_compute
3
- Version: 0.1.36
3
+ Version: 0.1.37
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_compute
3
- Version: 0.1.36
3
+ Version: 0.1.37
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -426,10 +426,12 @@ class ActionInstance:
426
426
 
427
427
  # if the service provider is local, then put --restart unless-stopped
428
428
  if os.environ.get("SERVICE_PROVIDER") in ("local", "LOCAL"):
429
- env_exports += " && export DOCKER_RESTART_POLICY='--restart unless-stopped' "
429
+ use_restart_policy = "--restart unless-stopped"
430
+ else:
431
+ use_restart_policy = ""
430
432
 
431
433
  cmd_parts = [
432
- f"docker run {use_gpu} ",
434
+ f"docker run {use_gpu} {use_restart_policy} ",
433
435
  network_config,
434
436
  *[f"-e {key}={shlex.quote(str(value))}" for key, value in env_vars.items()],
435
437
  *volumes,