dsw-command-queue 4.34.1__tar.gz → 4.35.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.
@@ -0,0 +1,135 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+
131
+ # IDE
132
+ .idea/
133
+ .vscode/
134
+
135
+ config.yml
@@ -0,0 +1,508 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
6
+ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+
11
+ ## [4.34.0]
12
+
13
+ ### Fixed
14
+
15
+ - Compute the retry backoff from `updated_at` instead of `created_at` (an aged command used to burn all its attempts in a tight loop)
16
+ - Compare `updated_at` as `timestamptz` (command eligibility no longer depends on the server timezone)
17
+ - Hold the row lock for the whole processing, so a command cannot be processed by two workers concurrently
18
+ - Close the cursor and end the transaction on every path of `fetch_and_process` (an idle worker used to stay idle in transaction)
19
+ - Roll back changes of a failed job instead of committing them together with its error record
20
+ - Terminate the process when a job exceeds the time limit, as its thread cannot be stopped and shares the DB connection
21
+ - Replace the connection of a timed-out job instead of using it (psycopg serializes access to a connection, so the handler could wait for the stuck job forever)
22
+ - Do not delay the processing when a command is skipped because someone else holds its lock
23
+ - Fix the platform check that disabled the signal wakeup pipe, so `SIGINT`/`SIGTERM`/`SIGABRT` interrupt waiting for notifications immediately
24
+ - Handle `SIGTERM` for graceful shutdown
25
+ - Re-check the connection and re-issue `LISTEN` in every cycle (a reconnect used to leave the queue with a stale socket)
26
+ - Detect a connection closed by the server while waiting for notifications (a readable socket is not necessarily a notification)
27
+ - Read notifications using `Connection.notifies` instead of iterating the low-level generator, which yielded wait instructions rather than the notifications
28
+ - Retry the queue per iteration, not per process (the retry budget is no longer spent over the lifetime of a worker)
29
+ - Process the oldest commands first (`ORDER BY attempts ASC, created_at ASC`)
30
+
31
+ ### Changed
32
+
33
+ - `CommandJobError` is derived from `Exception` instead of `BaseException`
34
+ - Replaced the unmaintained `func-timeout` dependency with own handling of the job timeout
35
+ ## [4.33.0]
36
+
37
+ Released for version consistency with other DSW tools.
38
+
39
+ ## [4.32.0]
40
+
41
+ Released for version consistency with other DSW tools.
42
+
43
+ ## [4.31.0]
44
+
45
+ Released for version consistency with other DSW tools.
46
+
47
+ ## [4.30.2]
48
+
49
+ Released for version consistency with other DSW tools.
50
+
51
+ ## [4.30.1]
52
+
53
+ Released for version consistency with other DSW tools.
54
+
55
+ ## [4.30.0]
56
+
57
+ Released for version consistency with other DSW tools.
58
+
59
+ ## [4.29.0]
60
+
61
+ Released for version consistency with other DSW tools.
62
+
63
+ ## [4.28.4]
64
+
65
+ Released for version consistency with other DSW tools.
66
+
67
+ ## [4.28.3]
68
+
69
+ Released for version consistency with other DSW tools.
70
+
71
+ ## [4.28.2]
72
+
73
+ Released for version consistency with other DSW tools.
74
+
75
+ ## [4.28.1]
76
+
77
+ Released for version consistency with other DSW tools.
78
+
79
+ ## [4.28.0]
80
+
81
+ Released for version consistency with other DSW tools.
82
+
83
+ ## [4.27.0]
84
+
85
+ Released for version consistency with other DSW tools.
86
+
87
+ ## [4.26.1]
88
+
89
+ Released for version consistency with other DSW tools.
90
+
91
+ ## [4.26.0]
92
+
93
+ Released for version consistency with other DSW tools.
94
+
95
+ ## [4.25.1]
96
+
97
+ Released for version consistency with other DSW tools.
98
+
99
+ ## [4.25.0]
100
+
101
+ Released for version consistency with other DSW tools.
102
+
103
+ ## [4.24.0]
104
+
105
+ Released for version consistency with other DSW tools.
106
+
107
+ ## [4.23.2]
108
+
109
+ Released for version consistency with other DSW tools.
110
+
111
+ ## [4.23.1]
112
+
113
+ Released for version consistency with other DSW tools.
114
+
115
+ ## [4.23.0]
116
+
117
+ Released for version consistency with other DSW tools.
118
+
119
+ ## [4.22.4]
120
+
121
+ Released for version consistency with other DSW tools.
122
+
123
+ ## [4.22.3]
124
+
125
+ Released for version consistency with other DSW tools.
126
+
127
+ ## [4.22.2]
128
+
129
+ Released for version consistency with other DSW tools.
130
+
131
+ ## [4.22.1]
132
+
133
+ Released for version consistency with other DSW tools.
134
+
135
+ ## [4.22.0]
136
+
137
+ Released for version consistency with other DSW tools.
138
+
139
+ ## [4.21.0]
140
+
141
+ Released for version consistency with other DSW tools.
142
+
143
+ ## [4.20.1]
144
+
145
+ Released for version consistency with other DSW tools.
146
+
147
+ ## [4.20.0]
148
+
149
+ Released for version consistency with other DSW tools.
150
+
151
+ ## [4.19.1]
152
+
153
+ Released for version consistency with other DSW tools.
154
+
155
+ ## [4.19.0]
156
+
157
+ Released for version consistency with other DSW tools.
158
+
159
+ ## [4.18.3]
160
+
161
+ Released for version consistency with other DSW tools.
162
+
163
+ ## [4.18.2]
164
+
165
+ Released for version consistency with other DSW tools.
166
+
167
+ ## [4.18.1]
168
+
169
+ Released for version consistency with other DSW tools.
170
+
171
+ ## [4.18.0]
172
+
173
+ Released for version consistency with other DSW tools.
174
+
175
+ ## [4.17.0]
176
+
177
+ Released for version consistency with other DSW tools.
178
+
179
+ ## [4.16.0]
180
+
181
+ Released for version consistency with other DSW tools.
182
+
183
+ ## [4.15.0]
184
+
185
+ Released for version consistency with other DSW tools.
186
+
187
+ ## [4.14.0]
188
+
189
+ ### Changed
190
+
191
+ - Improved error reporting
192
+ - Improved retry mechanism for failed commands
193
+
194
+ ## [4.13.0]
195
+
196
+ Released for version consistency with other DSW tools.
197
+
198
+ ## [4.12.0]
199
+
200
+ Released for version consistency with other DSW tools.
201
+
202
+ ## [4.11.0]
203
+
204
+ Released for version consistency with other DSW tools.
205
+
206
+ ## [4.10.6]
207
+
208
+ Released for version consistency with other DSW tools.
209
+
210
+ ## [4.10.5]
211
+
212
+ ### Fixed
213
+
214
+ - Fixed command queue job timeout (moved support from workers to queue, reliable timeout approach)
215
+
216
+ ## [4.10.4]
217
+
218
+ Released for version consistency with other DSW tools.
219
+
220
+ ## [4.10.3]
221
+
222
+ Released for version consistency with other DSW tools.
223
+
224
+ ## [4.10.2]
225
+
226
+ Released for version consistency with other DSW tools.
227
+
228
+ ## [4.10.1]
229
+
230
+ Released for version consistency with other DSW tools.
231
+
232
+ ## [4.10.0]
233
+
234
+ Released for version consistency with other DSW tools.
235
+
236
+ ## [4.9.1]
237
+
238
+ Released for version consistency with other DSW tools.
239
+
240
+ ## [4.9.0]
241
+
242
+ Released for version consistency with other DSW tools.
243
+
244
+ ## [4.8.1]
245
+
246
+ Released for version consistency with other DSW tools.
247
+
248
+ ## [4.8.0]
249
+
250
+ Released for version consistency with other DSW tools.
251
+
252
+ ## [4.7.0]
253
+
254
+ Released for version consistency with other DSW tools.
255
+
256
+ ## [4.6.0]
257
+
258
+ ### Fixed
259
+
260
+ - Fixed the issue with timezone while retrieving commands
261
+
262
+ ## [4.5.0]
263
+
264
+ Released for version consistency with other DSW tools.
265
+
266
+ ## [4.4.1]
267
+
268
+ Released for version consistency with other DSW tools.
269
+
270
+ ## [4.4.0]
271
+
272
+ Released for version consistency with other DSW tools.
273
+
274
+ ## [4.3.1]
275
+
276
+ Released for version consistency with other DSW tools.
277
+
278
+ ## [4.3.0]
279
+
280
+ Released for version consistency with other DSW tools.
281
+
282
+ ## [4.2.1]
283
+
284
+ Released for version consistency with other DSW tools.
285
+
286
+ ## [4.2.0]
287
+
288
+ Released for version consistency with other DSW tools.
289
+
290
+ ## [4.1.1]
291
+
292
+ ### Fixed
293
+
294
+ - Retry mechanism for failed commands (timeout for queueing)
295
+
296
+ ## [4.1.0]
297
+
298
+ Released for version consistency with other DSW tools.
299
+
300
+ ## [4.0.0]
301
+
302
+ Released for version consistency with other DSW tools.
303
+
304
+ ## [3.28.0]
305
+
306
+ Released for version consistency with other DSW tools.
307
+
308
+ ## [3.27.1]
309
+
310
+ Released for version consistency with other DSW tools.
311
+
312
+ ## [3.27.0]
313
+
314
+ Released for version consistency with other DSW tools.
315
+
316
+ ## [3.26.1]
317
+
318
+ Released for version consistency with other DSW tools.
319
+
320
+ ## [3.26.0]
321
+
322
+ Released for version consistency with other DSW tools.
323
+
324
+ ## [3.25.0]
325
+
326
+ Released for version consistency with other DSW tools.
327
+
328
+ ## [3.24.0]
329
+
330
+ Released for version consistency with other DSW tools.
331
+
332
+ ## [3.23.0]
333
+
334
+ ### Changed
335
+
336
+ - Improved retrieval of persistent commands
337
+ - Moved persistent command handling queries here
338
+
339
+ ## [3.22.1]
340
+
341
+ Released for version consistency with other DSW tools.
342
+
343
+ ## [3.22.0]
344
+
345
+ Released for version consistency with other DSW tools.
346
+
347
+ ## [3.21.0]
348
+
349
+ Released for version consistency with other DSW tools.
350
+
351
+ ## [3.20.2]
352
+
353
+ Released for version consistency with other DSW tools.
354
+
355
+ ## [3.20.1]
356
+
357
+ Released for version consistency with other DSW tools.
358
+
359
+ ## [3.20.0]
360
+
361
+ Released for version consistency with other DSW tools.
362
+
363
+ ## [3.19.2]
364
+
365
+ Released for version consistency with other DSW tools.
366
+
367
+ ## [3.19.1]
368
+
369
+ Released for version consistency with other DSW tools.
370
+
371
+ ## [3.19.0]
372
+
373
+ Released for version consistency with other DSW tools.
374
+
375
+ ## [3.18.0]
376
+
377
+ Released for version consistency with other DSW tools.
378
+
379
+ ## [3.17.0]
380
+
381
+ ### Changed
382
+
383
+ - Switch to psycopg3
384
+
385
+ ## [3.16.0]
386
+
387
+ Released for version consistency with other DSW tools.
388
+
389
+ ## [3.15.3]
390
+
391
+ Released for version consistency with other DSW tools.
392
+
393
+ ## [3.15.2]
394
+
395
+ Released for version consistency with other DSW tools.
396
+
397
+ ## [3.15.1]
398
+
399
+ Released for version consistency with other DSW tools.
400
+
401
+ ## [3.15.0]
402
+
403
+ Released for version consistency with other DSW tools.
404
+
405
+ ## [3.14.1]
406
+
407
+ Released for version consistency with other DSW tools.
408
+
409
+ ## [3.14.0]
410
+
411
+ ### Added
412
+
413
+ - Initiated this library from *dsw-data-seeder*, *dsw-document-worker*, and *dsw-mailer*
414
+
415
+
416
+ [Unreleased]: /../../compare/v4.34.0...main
417
+ [3.14.0]: /../../tree/v3.14.0
418
+ [3.14.1]: /../../tree/v3.14.1
419
+ [3.15.0]: /../../tree/v3.15.0
420
+ [3.15.1]: /../../tree/v3.15.1
421
+ [3.15.2]: /../../tree/v3.15.2
422
+ [3.15.3]: /../../tree/v3.15.3
423
+ [3.16.0]: /../../tree/v3.16.0
424
+ [3.17.0]: /../../tree/v3.17.0
425
+ [3.18.0]: /../../tree/v3.18.0
426
+ [3.19.0]: /../../tree/v3.19.0
427
+ [3.19.1]: /../../tree/v3.19.1
428
+ [3.19.2]: /../../tree/v3.19.2
429
+ [3.20.0]: /../../tree/v3.20.0
430
+ [3.20.1]: /../../tree/v3.20.1
431
+ [3.20.2]: /../../tree/v3.20.2
432
+ [3.21.0]: /../../tree/v3.21.0
433
+ [3.22.0]: /../../tree/v3.22.0
434
+ [3.22.1]: /../../tree/v3.22.1
435
+ [3.23.0]: /../../tree/v3.23.0
436
+ [3.24.0]: /../../tree/v3.24.0
437
+ [3.25.0]: /../../tree/v3.25.0
438
+ [3.26.0]: /../../tree/v3.26.0
439
+ [3.26.1]: /../../tree/v3.26.1
440
+ [3.27.0]: /../../tree/v3.27.0
441
+ [3.27.1]: /../../tree/v3.27.1
442
+ [3.28.0]: /../../tree/v3.28.0
443
+ [4.0.0]: /../../tree/v4.0.0
444
+ [4.1.0]: /../../tree/v4.1.0
445
+ [4.1.1]: /../../tree/v4.1.1
446
+ [4.2.0]: /../../tree/v4.2.0
447
+ [4.2.1]: /../../tree/v4.2.1
448
+ [4.3.0]: /../../tree/v4.3.0
449
+ [4.3.1]: /../../tree/v4.3.1
450
+ [4.4.0]: /../../tree/v4.4.0
451
+ [4.4.1]: /../../tree/v4.4.1
452
+ [4.5.0]: /../../tree/v4.5.0
453
+ [4.6.0]: /../../tree/v4.6.0
454
+ [4.7.0]: /../../tree/v4.7.0
455
+ [4.8.0]: /../../tree/v4.8.0
456
+ [4.8.1]: /../../tree/v4.8.1
457
+ [4.9.0]: /../../tree/v4.9.0
458
+ [4.9.1]: /../../tree/v4.9.1
459
+ [4.10.0]: /../../tree/v4.10.0
460
+ [4.10.1]: /../../tree/v4.10.1
461
+ [4.10.2]: /../../tree/v4.10.2
462
+ [4.10.3]: /../../tree/v4.10.3
463
+ [4.10.4]: /../../tree/v4.10.4
464
+ [4.10.5]: /../../tree/v4.10.5
465
+ [4.10.6]: /../../tree/v4.10.6
466
+ [4.11.0]: /../../tree/v4.11.0
467
+ [4.12.0]: /../../tree/v4.12.0
468
+ [4.13.0]: /../../tree/v4.13.0
469
+ [4.14.0]: /../../tree/v4.14.0
470
+ [4.15.0]: /../../tree/v4.15.0
471
+ [4.16.0]: /../../tree/v4.16.0
472
+ [4.17.0]: /../../tree/v4.17.0
473
+ [4.18.0]: /../../tree/v4.18.0
474
+ [4.18.1]: /../../tree/v4.18.1
475
+ [4.18.2]: /../../tree/v4.18.2
476
+ [4.18.3]: /../../tree/v4.18.3
477
+ [4.19.0]: /../../tree/v4.19.0
478
+ [4.19.1]: /../../tree/v4.19.1
479
+ [4.20.0]: /../../tree/v4.20.0
480
+ [4.20.1]: /../../tree/v4.20.1
481
+ [4.21.0]: /../../tree/v4.21.0
482
+ [4.22.0]: /../../tree/v4.22.0
483
+ [4.22.1]: /../../tree/v4.22.1
484
+ [4.22.2]: /../../tree/v4.22.2
485
+ [4.22.3]: /../../tree/v4.22.3
486
+ [4.22.4]: /../../tree/v4.22.4
487
+ [4.23.0]: /../../tree/v4.23.0
488
+ [4.23.1]: /../../tree/v4.23.1
489
+ [4.23.2]: /../../tree/v4.23.2
490
+ [4.24.0]: /../../tree/v4.24.0
491
+ [4.25.0]: /../../tree/v4.25.0
492
+ [4.25.1]: /../../tree/v4.25.1
493
+ [4.26.0]: /../../tree/v4.26.0
494
+ [4.26.1]: /../../tree/v4.26.1
495
+ [4.27.0]: /../../tree/v4.27.0
496
+ [4.28.0]: /../../tree/v4.28.0
497
+ [4.28.1]: /../../tree/v4.28.1
498
+ [4.28.2]: /../../tree/v4.28.2
499
+ [4.28.3]: /../../tree/v4.28.3
500
+ [4.28.4]: /../../tree/v4.28.4
501
+ [4.29.0]: /../../tree/v4.29.0
502
+ [4.30.0]: /../../tree/v4.30.0
503
+ [4.30.1]: /../../tree/v4.30.1
504
+ [4.30.2]: /../../tree/v4.30.2
505
+ [4.31.0]: /../../tree/v4.31.0
506
+ [4.32.0]: /../../tree/v4.32.0
507
+ [4.33.0]: /../../tree/v4.33.0
508
+ [4.34.0]: /../../tree/v4.34.0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2020 Marek Suchánek
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ PYTHON = python
2
+
3
+ .PHONY: verify
4
+ verify:
5
+ @echo "Trying to import: dsw.command_queue"
6
+ $(PYTHON) -c 'import dsw.command_queue'
7
+
8
+ .PHONY: test
9
+ test:
10
+ @echo "No tests for this package"
@@ -1,11 +1,15 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.5
2
2
  Name: dsw-command-queue
3
- Version: 4.34.1
3
+ Version: 4.35.0
4
4
  Summary: Library for working with command queue and persistent commands
5
- Keywords: dsw,subscriber,publisher,database,queue,processing
6
- Author: Marek Suchánek
5
+ Project-URL: Homepage, https://ds-wizard.org
6
+ Project-URL: Repository, https://github.com/ds-wizard/engine-tools
7
+ Project-URL: Documentation, https://guide.ds-wizard.org
8
+ Project-URL: Issues, https://github.com/ds-wizard/ds-wizard/issues
7
9
  Author-email: Marek Suchánek <marek.suchanek@ds-wizard.org>
8
10
  License: Apache License 2.0
11
+ License-File: LICENSE
12
+ Keywords: database,dsw,processing,publisher,queue,subscriber
9
13
  Classifier: Development Status :: 5 - Production/Stable
10
14
  Classifier: License :: OSI Approved :: Apache Software License
11
15
  Classifier: Programming Language :: Python
@@ -13,14 +17,10 @@ Classifier: Programming Language :: Python :: 3.14
13
17
  Classifier: Topic :: Database
14
18
  Classifier: Topic :: Text Processing
15
19
  Classifier: Topic :: Utilities
20
+ Requires-Python: <4,>=3.14
21
+ Requires-Dist: dsw-database==4.35.0
16
22
  Requires-Dist: psycopg[binary]>=3.2
17
23
  Requires-Dist: tenacity
18
- Requires-Dist: dsw-database==4.34.1
19
- Requires-Python: >=3.14, <4
20
- Project-URL: Homepage, https://ds-wizard.org
21
- Project-URL: Repository, https://github.com/ds-wizard/engine-tools
22
- Project-URL: Documentation, https://guide.ds-wizard.org
23
- Project-URL: Issues, https://github.com/ds-wizard/ds-wizard/issues
24
24
  Description-Content-Type: text/markdown
25
25
 
26
26
  # Data Stewardship Wizard: Command Queue
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
9
9
  )
10
10
 
11
11
  BUILD_INFO = BuildInfo(
12
- version='v4.34.1~496e439',
13
- built_at='2026-09-13 14:34:24Z',
14
- sha='496e43989f6d98c2e76f82fc8d322cacbb603ba3',
12
+ version='v4.35.0~a55653b',
13
+ built_at='2026-10-06 09:08:28Z',
14
+ sha='a55653b2611764140b5c31f0aed558e618d3a4ab',
15
15
  branch='HEAD',
16
- tag='v4.34.1',
16
+ tag='v4.35.0',
17
17
  )
@@ -1,6 +1,5 @@
1
1
  [project]
2
2
  name = "dsw-command-queue"
3
- version = "4.34.1"
4
3
  description = "Library for working with command queue and persistent commands"
5
4
  readme = "README.md"
6
5
  keywords = ["dsw", "subscriber", "publisher", "database", "queue", "processing"]
@@ -18,12 +17,7 @@ classifiers = [
18
17
  "Topic :: Utilities",
19
18
  ]
20
19
  requires-python = ">=3.14, <4"
21
- dependencies = [
22
- "psycopg[binary]>=3.2", # Connection.notifies(timeout=...)
23
- "tenacity",
24
- # DSW
25
- "dsw-database==4.34.1",
26
- ]
20
+ dynamic = ["version", "dependencies"]
27
21
 
28
22
  [project.urls]
29
23
  Homepage = "https://ds-wizard.org"
@@ -32,9 +26,23 @@ Documentation = "https://guide.ds-wizard.org"
32
26
  Issues = "https://github.com/ds-wizard/ds-wizard/issues"
33
27
 
34
28
  [build-system]
35
- requires = ["uv_build>=0.12.3,<0.13.0"]
36
- build-backend = "uv_build"
29
+ requires = ["hatchling==1.32.0", "uv-dynamic-versioning==0.14.1"]
30
+ build-backend = "hatchling.build"
31
+
32
+
33
+ [tool.hatch.version]
34
+ source = "uv-dynamic-versioning"
35
+
36
+ [tool.hatch.build.targets.wheel]
37
+ packages = ["dsw"]
38
+ artifacts = ["dsw/*/build_info.py"]
39
+
40
+ [tool.hatch.build.targets.sdist]
41
+ artifacts = ["dsw/*/build_info.py"]
42
+
43
+ [tool.hatch.metadata.hooks.uv-dynamic-versioning]
44
+ dependencies = ["psycopg[binary]>=3.2", "tenacity", "dsw-database=={{ version }}"]
37
45
 
38
- [tool.uv.build-backend]
39
- module-name = "dsw.command_queue"
40
- module-root = ""
46
+ [tool.uv-dynamic-versioning]
47
+ vcs = "git"
48
+ style = "pep440"
@@ -1,49 +0,0 @@
1
- [project]
2
- name = "dsw-command-queue"
3
- version = "4.34.1"
4
- description = "Library for working with command queue and persistent commands"
5
- readme = "README.md"
6
- keywords = [
7
- "dsw",
8
- "subscriber",
9
- "publisher",
10
- "database",
11
- "queue",
12
- "processing",
13
- ]
14
- classifiers = [
15
- "Development Status :: 5 - Production/Stable",
16
- "License :: OSI Approved :: Apache Software License",
17
- "Programming Language :: Python",
18
- "Programming Language :: Python :: 3.14",
19
- "Topic :: Database",
20
- "Topic :: Text Processing",
21
- "Topic :: Utilities",
22
- ]
23
- requires-python = ">=3.14, <4"
24
- dependencies = [
25
- "psycopg[binary]>=3.2",
26
- "tenacity",
27
- "dsw-database==4.34.1",
28
- ]
29
-
30
- [project.license]
31
- text = "Apache License 2.0"
32
-
33
- [[project.authors]]
34
- name = "Marek Suchánek"
35
- email = "marek.suchanek@ds-wizard.org"
36
-
37
- [project.urls]
38
- Homepage = "https://ds-wizard.org"
39
- Repository = "https://github.com/ds-wizard/engine-tools"
40
- Documentation = "https://guide.ds-wizard.org"
41
- Issues = "https://github.com/ds-wizard/ds-wizard/issues"
42
-
43
- [build-system]
44
- requires = ["uv_build>=0.12.3,<0.13.0"]
45
- build-backend = "uv_build"
46
-
47
- [tool.uv.build-backend]
48
- module-name = "dsw.command_queue"
49
- module-root = ""