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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: queue-local
3
- Version: 0.0.47
3
+ Version: 0.0.48
4
4
  Home-page: https://github.com/circles-zone/queue-local-python-package
5
5
  Author: Circles
6
6
  Author-email: info@circles.life
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: queue-local
3
- Version: 0.0.47
3
+ Version: 0.0.48
4
4
  Home-page: https://github.com/circles-zone/queue-local-python-package
5
5
  Author: Circles
6
6
  Author-email: info@circles.life
@@ -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.47',
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