queue-local 0.0.47__tar.gz → 0.0.48__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.47 → queue_local-0.0.48}/PKG-INFO +1 -1
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local/src/database_queue.py +2 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local.egg-info/PKG-INFO +1 -1
- {queue_local-0.0.47 → queue_local-0.0.48}/setup.py +1 -1
- {queue_local-0.0.47 → queue_local-0.0.48}/README.md +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/pyproject.toml +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local/src/__init__.py +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local/src/our_queue.py +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local.egg-info/SOURCES.txt +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local.egg-info/dependency_links.txt +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local.egg-info/requires.txt +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/queue_local.egg-info/top_level.txt +0 -0
- {queue_local-0.0.47 → queue_local-0.0.48}/setup.cfg +0 -0
|
@@ -117,6 +117,7 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
117
117
|
(f"AND {custom_condition}" if custom_condition else "")
|
|
118
118
|
self.update_by_where(where=update_where, order_by=self.id_column_name, limit=1, data_json=data_json)
|
|
119
119
|
|
|
120
|
+
# TODO In which cases queue_status_id IS NULL? - Does it indicate a problem/bug?
|
|
120
121
|
select_where = f"process_id = {os.getpid()} AND (queue_status_id IS NULL OR queue_status_id = {QueueStatusEnum.NEW.value})"
|
|
121
122
|
queue_item = self.select_one_dict_by_where(where=select_where)
|
|
122
123
|
if queue_item:
|
|
@@ -137,6 +138,7 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
137
138
|
def peek(self, action_ids: tuple = ()) -> dict:
|
|
138
139
|
"""Get the first item in the queue without changing it"""
|
|
139
140
|
action_ids = self._fix_action_ids(action_ids)
|
|
141
|
+
# TODO In which cases queue_status_id IS NULL? - Does it indicate a problem/bug?
|
|
140
142
|
where = f"process_id IS NULL AND (queue_status_id IS NULL OR queue_status_id = {QueueStatusEnum.NEW.value})" + \
|
|
141
143
|
(f" AND action_id IN {action_ids}" if action_ids else "")
|
|
142
144
|
# SELECT * FROM `queue`.`queue_item_view` WHERE process_id IS NULL AND queue_status_id = 0
|
|
@@ -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.48',
|
|
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
|