matrice-compute 0.1.43__tar.gz → 0.1.44__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.43 → matrice_compute-0.1.44}/PKG-INFO +1 -1
  2. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/matrice_compute.egg-info/PKG-INFO +1 -1
  3. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/action_instance.py +4 -1
  4. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/LICENSE.txt +0 -0
  5. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/README.md +0 -0
  6. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/matrice_compute.egg-info/SOURCES.txt +0 -0
  7. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/matrice_compute.egg-info/dependency_links.txt +0 -0
  8. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/matrice_compute.egg-info/not-zip-safe +0 -0
  9. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/matrice_compute.egg-info/top_level.txt +0 -0
  10. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/pyproject.toml +0 -0
  11. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/setup.cfg +0 -0
  12. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/setup.py +0 -0
  13. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/__init__.py +0 -0
  14. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/actions_manager.py +0 -0
  15. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/actions_scaledown_manager.py +0 -0
  16. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/compute_operations_handler.py +0 -0
  17. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/instance_manager.py +0 -0
  18. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/instance_utils.py +0 -0
  19. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/prechecks.py +0 -0
  20. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/py.typed +0 -0
  21. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/resources_tracker.py +0 -0
  22. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/scaling.py +0 -0
  23. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/src/matrice_compute/shutdown_manager.py +0 -0
  24. {matrice_compute-0.1.43 → matrice_compute-0.1.44}/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.43
3
+ Version: 0.1.44
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.43
3
+ Version: 0.1.44
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -1905,11 +1905,14 @@ def video_storage_setup_execute(self: ActionInstance):
1905
1905
  self.start(cmd, "video_storage_setup_execute")
1906
1906
  return
1907
1907
 
1908
+ # get the mediaStorage path from jobParams
1909
+ media_storage_path = action_details["jobParams"].get("mediaStoragePath", "/host/data/path/video_storage")
1910
+
1908
1911
  # This is the existing Docker run command
1909
1912
  worker_cmd = (
1910
1913
  f"docker run -d --pull=always --net=host "
1911
1914
  f"--name {self.action_record_id}_{self.action_type} "
1912
- f"-v matrice_myvol:/matrice_data "
1915
+ f"-v {media_storage_path}:/storage "
1913
1916
  f'-e ENV="{os.environ.get("ENV", "prod")}" '
1914
1917
  f'-e MATRICE_SECRET_ACCESS_KEY="{self.matrice_secret_access_key}" '
1915
1918
  f'-e MATRICE_ACCESS_KEY_ID="{self.matrice_access_key_id}" '