Skip to content

Commit a03ae2c

Browse files
committed
Fixed multiple process running with the api
1 parent e932ede commit a03ae2c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

datamint/api/base_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def __init__(self,
7777
"""
7878
self.config = config
7979
self._owns_client = client is None # Track if we created the client
80+
self._pid = os.getpid() # Track PID to detect DataLoader worker forks
8081
self.client = client or BaseApi._create_client(config)
8182
self.semaphore = asyncio.Semaphore(20)
8283
self._api_instance: 'Api | None' = None # Injected by Api class

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "datamint"
33
description = "A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows."
4-
version = "2.10.8"
4+
version = "2.10.9"
55
dynamic = ["dependencies"]
66
requires-python = ">=3.10"
77
readme = "README.md"

0 commit comments

Comments
 (0)