Postgres-tq

Latest version: v1.2.0

Safety actively analyzes 681790 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.0

* The `reschedule()` method has an optional parameter to decrease the TTL if set to True (False by default).
* The `add()` and `add_many()` methods set the `can_start_at` by default to the current time of the database clock, not Python, for consistency.

1.1.0

* The `complete()` method now returns the count of updated tasks, 0 if it was already completed

1.0.1

* Restrict the type yielded by the generator to never be None

1.0.0

* Allow delayed schedule of tasks, use clearer name for database columns
* Add `get_many` helper to retrieve multiple tasks with a single DB call
* Add `add_many` helper to insert multiple tasks with a single transaction
* Create an index on the table, can now scale to millions of tasks
* Every method returning tasks returns the queue name too, in case multi-queue is added later
* Type hints are made available to users thanks to `py.typed`

0.0.6

* Adding a task now returns its UUID, previously nothing was returned

0.0.5

* Upgraded dependencies, now this library requires Python 3.9 (previously was 3.8)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.