xtr-orm-messenger 7.1.0__tar.gz → 7.3.0__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.
Files changed (28) hide show
  1. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/PKG-INFO +9 -6
  2. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/README.md +5 -2
  3. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/pyproject.toml +5 -5
  4. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/pyproject.toml.orig +5 -5
  5. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/.agents/skills/xtr-orm-messenger/SKILL.md +2 -1
  6. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/LICENSE +0 -0
  7. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/__init__.py +0 -0
  8. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/exception/__init__.py +0 -0
  9. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/exception/invalid_orm_dsn_error.py +0 -0
  10. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/exception/orm_messenger_error.py +0 -0
  11. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/exception/transport_error.py +0 -0
  12. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/py.typed +0 -0
  13. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/recipe/__init__.py +0 -0
  14. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/recipe/manifest.toml +0 -0
  15. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/__init__.py +0 -0
  16. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/_database_errors.py +0 -0
  17. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/connection.py +0 -0
  18. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/messages_table.py +0 -0
  19. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/messages_table_driver.py +0 -0
  20. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/messages_tables.py +0 -0
  21. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_options.py +0 -0
  22. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_received_stamp.py +0 -0
  23. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_receiver.py +0 -0
  24. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_sender.py +0 -0
  25. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_transport.py +0 -0
  26. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/orm_transport_factory.py +0 -0
  27. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/postgresql_notifier.py +0 -0
  28. {xtr_orm_messenger-7.1.0 → xtr_orm_messenger-7.3.0}/src/xtr_orm_messenger/transport/stored_message.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xtr-orm-messenger
3
- Version: 7.1.0
3
+ Version: 7.3.0
4
4
  Summary: A database transport for xtr-messenger: messages kept in a table on an xtr-orm connection, claimed by workers, delayed, redelivered and woken by notifications.
5
5
  Keywords: message-bus,message-queue,transport,database,sqlalchemy,asyncio
6
6
  Author: Xterr
@@ -15,9 +15,9 @@ Classifier: Topic :: Database
15
15
  Classifier: Typing :: Typed
16
16
  Requires-Dist: msgspec>=0.20
17
17
  Requires-Dist: sqlalchemy[asyncio]>=2.0.52
18
- Requires-Dist: xtr-clock>=7.0,<8
19
- Requires-Dist: xtr-messenger>=7.0,<8
20
- Requires-Dist: xtr-orm>=7.0,<8
18
+ Requires-Dist: xtr-clock>=7.3,<8
19
+ Requires-Dist: xtr-messenger>=7.3,<8
20
+ Requires-Dist: xtr-orm>=7.3,<8
21
21
  Requires-Python: >=3.14.4
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -121,6 +121,9 @@ an `ErrorDetailsStamp` with why the last one failed. Once its attempts run out t
121
121
  the `failure_queue` of the same table, `failed` unless named otherwise, where `count()`, `all()`
122
122
  and `find()` on a transport reading that queue show it, and a worker consuming it tries it
123
123
  again, with a fresh count. A message failing for good in the failure queue itself is deleted.
124
+ With a `failure_transport` configured for the transport, the worker sends a message whose
125
+ attempts ran out there instead, and the row is deleted: `failure_queue` is where it goes only
126
+ when the configuration names no failure transport.
124
127
  The worker asks the transport before it announces a failure, so `WorkerMessageFailedEvent`
125
128
  carries `will_retry=True` for an attempt that will be made again.
126
129
 
@@ -291,8 +294,8 @@ Everything this library raises derives from `OrmMessengerError`, itself a
291
294
 
292
295
  ## Upgrading
293
296
 
294
- What changes for an application moving to 7.0, and how to keep the old behaviour where that is
295
- still possible: [Upgrading to 7.0](../../UPGRADING.md#xtr-orm-messenger).
297
+ What changes for an application moving to 7.0 and to 7.1, and how to keep the old behaviour
298
+ where that is still possible: [Upgrading](../../UPGRADING.md).
296
299
 
297
300
  ## Development
298
301
 
@@ -98,6 +98,9 @@ an `ErrorDetailsStamp` with why the last one failed. Once its attempts run out t
98
98
  the `failure_queue` of the same table, `failed` unless named otherwise, where `count()`, `all()`
99
99
  and `find()` on a transport reading that queue show it, and a worker consuming it tries it
100
100
  again, with a fresh count. A message failing for good in the failure queue itself is deleted.
101
+ With a `failure_transport` configured for the transport, the worker sends a message whose
102
+ attempts ran out there instead, and the row is deleted: `failure_queue` is where it goes only
103
+ when the configuration names no failure transport.
101
104
  The worker asks the transport before it announces a failure, so `WorkerMessageFailedEvent`
102
105
  carries `will_retry=True` for an attempt that will be made again.
103
106
 
@@ -268,8 +271,8 @@ Everything this library raises derives from `OrmMessengerError`, itself a
268
271
 
269
272
  ## Upgrading
270
273
 
271
- What changes for an application moving to 7.0, and how to keep the old behaviour where that is
272
- still possible: [Upgrading to 7.0](../../UPGRADING.md#xtr-orm-messenger).
274
+ What changes for an application moving to 7.0 and to 7.1, and how to keep the old behaviour
275
+ where that is still possible: [Upgrading](../../UPGRADING.md).
273
276
 
274
277
  ## Development
275
278
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xtr-orm-messenger"
3
- version = "7.1.0"
3
+ version = "7.3.0"
4
4
  description = "A database transport for xtr-messenger: messages kept in a table on an xtr-orm connection, claimed by workers, delayed, redelivered and woken by notifications."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14.4"
@@ -25,9 +25,9 @@ classifiers = [
25
25
  dependencies = [
26
26
  "msgspec>=0.20",
27
27
  "sqlalchemy[asyncio]>=2.0.52",
28
- "xtr-clock>=7.0,<8",
29
- "xtr-messenger>=7.0,<8",
30
- "xtr-orm>=7.0,<8",
28
+ "xtr-clock>=7.3,<8",
29
+ "xtr-messenger>=7.3,<8",
30
+ "xtr-orm>=7.3,<8",
31
31
  ]
32
32
 
33
33
  [[project.authors]]
@@ -47,7 +47,7 @@ dev = [
47
47
  "ty>=0.0.83",
48
48
  "aiosqlite>=0.20",
49
49
  "asyncpg>=0.31",
50
- "xtr-serializer>=7.0,<8",
50
+ "xtr-serializer>=7.3,<8",
51
51
  ]
52
52
 
53
53
  [build-system]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xtr-orm-messenger"
3
- version = "7.1.0"
3
+ version = "7.3.0"
4
4
  description = "A database transport for xtr-messenger: messages kept in a table on an xtr-orm connection, claimed by workers, delayed, redelivered and woken by notifications."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14.4"
@@ -21,9 +21,9 @@ classifiers = [
21
21
  dependencies = [
22
22
  "msgspec>=0.20",
23
23
  "sqlalchemy[asyncio]>=2.0.52",
24
- "xtr-clock>=7.0,<8",
25
- "xtr-messenger>=7.0,<8",
26
- "xtr-orm>=7.0,<8",
24
+ "xtr-clock>=7.3,<8",
25
+ "xtr-messenger>=7.3,<8",
26
+ "xtr-orm>=7.3,<8",
27
27
  ]
28
28
 
29
29
  # Advertises the recipe — what *Use in an application* takes — for recipes:sync.
@@ -46,7 +46,7 @@ dev = [
46
46
  # application's driver is the one its connection already uses.
47
47
  "asyncpg>=0.31",
48
48
  # The envelope serializer the tests encode with is built on it, as the messenger's is.
49
- "xtr-serializer>=7.0,<8",
49
+ "xtr-serializer>=7.3,<8",
50
50
  ]
51
51
 
52
52
  [build-system]
@@ -26,7 +26,8 @@ skill; for connections and migrations, `xtr-orm`.
26
26
  `orm:migrations:diff` writes it; `messages_tables(bus_config, connection, default)` names them.
27
27
  - Acknowledging deletes the row. Rejecting puts it back in its queue with a `RedeliveryStamp`
28
28
  while attempts are left, then moves it to `failure_queue` — consume that queue to try it
29
- again; a failure there deletes it. `transport.will_retry(envelope)` says which, and the
29
+ again; a failure there deletes it. With a `failure_transport` configured, the worker sends it
30
+ there instead and the row is deleted. `transport.will_retry(envelope)` says which, and the
30
31
  worker's `WorkerMessageFailedEvent.will_retry` follows it. While a worker holds a message its claim is renewed every half of
31
32
  `redeliver_timeout`; a row not renewed that long (a dead or frozen worker) is claimed again,
32
33
  so handlers must be idempotent.