queue-local 0.0.59__tar.gz → 0.0.60__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.
- {queue_local-0.0.59 → queue_local-0.0.60}/PKG-INFO +1 -1
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local/src/database_queue.py +2 -2
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local.egg-info/PKG-INFO +1 -1
- {queue_local-0.0.59 → queue_local-0.0.60}/setup.py +1 -1
- {queue_local-0.0.59 → queue_local-0.0.60}/README.md +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/pyproject.toml +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local/src/__init__.py +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local/src/our_queue.py +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local.egg-info/SOURCES.txt +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local.egg-info/dependency_links.txt +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local.egg-info/requires.txt +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/queue_local.egg-info/top_level.txt +0 -0
- {queue_local-0.0.59 → queue_local-0.0.60}/setup.cfg +0 -0
|
@@ -95,7 +95,7 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
95
95
|
queue_dict = {"queue_status_id": QueueStatusEnum.NEW.value, "process_id": None}
|
|
96
96
|
self.update_by_column_and_value(column_value=queue_item[self.queue_item_id_column_name], queue_dict=queue_dict)
|
|
97
97
|
|
|
98
|
-
def get(self, *, action_ids: tuple = (), custom_condition: str = "",data_dict: dict = None) -> dict:
|
|
98
|
+
def get(self, *, action_ids: tuple = (), custom_condition: str = "",data_dict: dict = None, queue_dict: dict = None) -> dict:
|
|
99
99
|
"""
|
|
100
100
|
Returns the first item from the queue (possibly considering specific actions) and marks it as taken.
|
|
101
101
|
|
|
@@ -103,7 +103,7 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
103
103
|
:param custom_condition: Custom condition to add to the WHERE clause (optional).
|
|
104
104
|
:return: Dictionary representing the retrieved queue item.
|
|
105
105
|
"""
|
|
106
|
-
queue_dict=data_dict
|
|
106
|
+
queue_dict=data_dict or queue_dict
|
|
107
107
|
action_ids = self._fix_action_ids(action_ids)
|
|
108
108
|
|
|
109
109
|
queue_dict = {"process_id": os.getpid()}
|
|
@@ -5,7 +5,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name=PACKAGE_NAME, # https://pypi.org/project/queue-local
|
|
8
|
-
version='0.0.
|
|
8
|
+
version='0.0.60',
|
|
9
9
|
author="Circles",
|
|
10
10
|
author_email="info@circles.life",
|
|
11
11
|
url=f"https://github.com/circles-zone/{PACKAGE_NAME}-python-package",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|