python3-cyberfusion-queue-support 2.5__py3-none-any.whl → 2.5.2__py3-none-any.whl

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.
@@ -4,11 +4,15 @@ from typing import Any
4
4
 
5
5
  from cyberfusion.SystemdSupport import Unit
6
6
 
7
+ from cyberfusion.QueueSupport.sentinels import UNKNOWN
8
+
7
9
 
8
10
  class CustomEncoder(JSONEncoder):
9
11
  def default(self, o: Any) -> Any:
10
12
  if isinstance(o, Unit):
11
13
  return {"name": o.name}
14
+ elif o == UNKNOWN:
15
+ return "unknown"
12
16
 
13
17
  return super().default(o)
14
18
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-cyberfusion-queue-support
3
- Version: 2.5
3
+ Version: 2.5.2
4
4
  Summary: Library to queue actions.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-queue-support
@@ -1,6 +1,6 @@
1
1
  cyberfusion/QueueSupport/__init__.py,sha256=JcGNqU0hnN0wan1lY9Ly0yWAprS1Pzw1cT0mW9pIZvU,4678
2
2
  cyberfusion/QueueSupport/database.py,sha256=tlsOiX8owV9DM9a4FWO224XICjDSrrd-vaCiPbkQk7E,3610
3
- cyberfusion/QueueSupport/encoders.py,sha256=5gxU0OXsX16OChHDCDaWTV-s1Y7KRcZ8aVplAO1WDyM,371
3
+ cyberfusion/QueueSupport/encoders.py,sha256=_xv2OZrMqTwLd5LBtBpq97vehPgpB36iIngEGU_8azw,483
4
4
  cyberfusion/QueueSupport/interfaces.py,sha256=ip8z6cfLFldQCDSec6fK6AIOdxOjIyFykDv4dCHJYSI,943
5
5
  cyberfusion/QueueSupport/outcomes.py,sha256=MjvhjfEu2rACvgZfAsjtmVPOUonuhyVhAuV5HuJDvgI,18903
6
6
  cyberfusion/QueueSupport/sentinels.py,sha256=LwD1BUxDJgY6aJr21cunZKRn5nycqqlNlmJhFKjqUBw,57
@@ -36,8 +36,8 @@ cyberfusion/QueueSupport/migrations/versions/571e55ab5ed5_initial_migration.py,s
36
36
  cyberfusion/QueueSupport/migrations/versions/8023b9eecdd1_add_traceback_to_queue_items.py,sha256=IfwqqHeE6e4iDH3bc6FrOgdBT4w-Kxa2MYv0dzYjEbk,497
37
37
  cyberfusion/QueueSupport/migrations/versions/9ae29b5db790_add_string_to_queue_item_outcomes.py,sha256=CzNJVL5Ia_J5woGsnCRSrlraoaT8YfgZUVOlAWHjb2Y,546
38
38
  cyberfusion/QueueSupport/migrations/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- python3_cyberfusion_queue_support-2.5.dist-info/METADATA,sha256=lrGDtqyguoP479V_BcVmVmRuUWW7s5c-YI-GdTgYO5c,4488
40
- python3_cyberfusion_queue_support-2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
- python3_cyberfusion_queue_support-2.5.dist-info/entry_points.txt,sha256=j42nbFWu1jTev4Ca3GhEZlH546t48aqYXnaKP20NWfA,91
42
- python3_cyberfusion_queue_support-2.5.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
43
- python3_cyberfusion_queue_support-2.5.dist-info/RECORD,,
39
+ python3_cyberfusion_queue_support-2.5.2.dist-info/METADATA,sha256=xY1gffzzBQf6bMHGXiz0cWqJQNx-RxZs2vupv-nS5jA,4490
40
+ python3_cyberfusion_queue_support-2.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
41
+ python3_cyberfusion_queue_support-2.5.2.dist-info/entry_points.txt,sha256=j42nbFWu1jTev4Ca3GhEZlH546t48aqYXnaKP20NWfA,91
42
+ python3_cyberfusion_queue_support-2.5.2.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
43
+ python3_cyberfusion_queue_support-2.5.2.dist-info/RECORD,,