papilio-tasks 3.0.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.
- papilio_tasks-3.0.0/.github/workflows/ci.yml +630 -0
- papilio_tasks-3.0.0/CHANGELOG.md +37 -0
- papilio_tasks-3.0.0/CONTRIBUTING.md +38 -0
- papilio_tasks-3.0.0/LICENSE +21 -0
- papilio_tasks-3.0.0/MANIFEST.in +5 -0
- papilio_tasks-3.0.0/PKG-INFO +175 -0
- papilio_tasks-3.0.0/README.fa.md +98 -0
- papilio_tasks-3.0.0/README.md +98 -0
- papilio_tasks-3.0.0/assets/logo-dark.webp +0 -0
- papilio_tasks-3.0.0/assets/logo-light.webp +0 -0
- papilio_tasks-3.0.0/docs/README.md +24 -0
- papilio_tasks-3.0.0/docs/design.md +392 -0
- papilio_tasks-3.0.0/docs/development.md +60 -0
- papilio_tasks-3.0.0/docs/taskiq/brokers.md +253 -0
- papilio_tasks-3.0.0/docs/taskiq/cli.md +51 -0
- papilio_tasks-3.0.0/docs/taskiq/dishka.md +114 -0
- papilio_tasks-3.0.0/docs/taskiq/kafka.md +112 -0
- papilio_tasks-3.0.0/docs/taskiq/middlewares.md +83 -0
- papilio_tasks-3.0.0/docs/taskiq/nats.md +114 -0
- papilio_tasks-3.0.0/docs/taskiq/postgresql.md +130 -0
- papilio_tasks-3.0.0/docs/taskiq/rabbit-dishka.md +39 -0
- papilio_tasks-3.0.0/docs/taskiq/redis.md +122 -0
- papilio_tasks-3.0.0/docs/taskiq/results.md +220 -0
- papilio_tasks-3.0.0/docs/taskiq/schedulers.md +314 -0
- papilio_tasks-3.0.0/docs/taskiq/service-bus.md +131 -0
- papilio_tasks-3.0.0/docs/taskiq/sqs.md +174 -0
- papilio_tasks-3.0.0/docs/taskiq/ydb.md +149 -0
- papilio_tasks-3.0.0/docs/taskiq/zmq.md +121 -0
- papilio_tasks-3.0.0/docs/taskiq.md +76 -0
- papilio_tasks-3.0.0/papilio_tasks/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/faststream/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/faststream/brokers/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/faststream/dependencies/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/faststream/middlewares/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/faststream/router/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/py.typed +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/__init__.py +4 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/_publication.py +24 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/capo.py +33 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/publishing.py +94 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/registration.py +51 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/retry.py +64 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/wire.py +17 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/_tools/ydb.py +27 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/__init__.py +7 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_admin.py +91 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_app.py +107 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_broker.py +134 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_native.py +33 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_producer.py +43 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/kafka/_router.py +93 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/__init__.py +4 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/_native.py +22 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/_router.py +55 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/_runner.py +28 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/_runtime.py +124 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/memory/_scheduler.py +28 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/__init__.py +8 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/_app.py +167 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/_brokers.py +141 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/_native.py +32 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/_producer.py +47 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/nats/_router.py +107 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/postgresql/__init__.py +4 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/postgresql/_app.py +100 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/postgresql/_broker.py +56 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/postgresql/_producer.py +59 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/postgresql/_router.py +83 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/__init__.py +7 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_app.py +71 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_broker.py +41 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_native.py +13 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_producer.py +77 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_router.py +68 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/_topology.py +123 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/dishka/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/rabbit/dishka/_provider.py +28 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/__init__.py +11 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/_app.py +155 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/_native.py +32 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/_producer.py +33 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/_router.py +82 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/redis/_sentinel.py +33 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/__init__.py +10 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_app.py +119 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_broker.py +212 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_entities.py +43 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_native.py +31 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_producer.py +26 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/service_bus/_router.py +89 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/__init__.py +3 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/_app.py +109 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/_binding.py +49 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/_producer.py +32 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/_router.py +114 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/aio/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/aio/_broker.py +84 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/capo/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/sqs/capo/_broker.py +65 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/__init__.py +5 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/_app.py +113 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/_broker.py +209 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/_native.py +30 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/_producer.py +26 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/ydb/_router.py +84 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/__init__.py +4 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/_app.py +84 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/_broker.py +61 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/_native.py +24 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/_producer.py +35 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/brokers/zmq/_router.py +61 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_banner.py +48 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_logging.py +54 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_main.py +58 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_receiver.py +14 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_scheduler.py +60 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_validation.py +24 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/cli/_worker.py +33 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/__init__.py +5 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/_inject.py +50 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/_native.py +28 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/_signature.py +64 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/_worker.py +129 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/dependencies/dishka/service.py +48 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/__init__.pyi +3 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/_exports.py +15 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/logging.py +57 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/retry/__init__.py +10 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/retry/_policy.py +35 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/middlewares/retry/middleware.py +141 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/options.py +35 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/local/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/local/_native.py +13 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/nats/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/nats/_backend.py +89 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/postgresql/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/postgresql/_backend.py +37 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/reader/__init__.py +3 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/reader/_reader.py +76 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/redis/__init__.py +3 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/redis/_native.py +19 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/s3/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/s3/aio/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/s3/aio/_backend.py +31 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/s3/capo/__init__.py +2 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/s3/capo/_backend.py +69 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/ydb/__init__.py +3 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/results/ydb/_backend.py +152 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/__init__.py +6 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/__init__.pyi +8 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/_exports.py +29 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/_inline.py +19 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/_managed.py +55 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/__init__.py +8 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/_dispatch.py +168 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/_records.py +172 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/_router.py +38 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/_scheduler.py +145 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/_source.py +27 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/composition/handle.py +79 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/__init__.py +0 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/_payload.py +28 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/nats/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/nats/_source.py +150 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/postgresql/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/postgresql/_source.py +174 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/redis/__init__.py +4 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/redis/_list.py +213 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/redis/_native.py +188 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/redis/_records.py +41 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/ydb/__init__.py +1 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/ydb/_records.py +63 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/sources/ydb/_source.py +226 -0
- papilio_tasks-3.0.0/papilio_tasks/taskiq/schedulers/triggers.py +39 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/PKG-INFO +175 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/SOURCES.txt +283 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/dependency_links.txt +1 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/entry_points.txt +2 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/requires.txt +88 -0
- papilio_tasks-3.0.0/papilio_tasks.egg-info/top_level.txt +1 -0
- papilio_tasks-3.0.0/pyproject.toml +74 -0
- papilio_tasks-3.0.0/setup.cfg +4 -0
- papilio_tasks-3.0.0/tests/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/_redis_topologies.py +245 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/kafka/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/kafka/test_delivery.py +124 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/kafka/test_inline_schedules.py +152 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/nats/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/nats/test_delivery.py +167 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/nats/test_inline_schedules.py +140 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/postgresql/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/postgresql/test_delivery.py +295 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/dishka/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/dishka/test_provider.py +81 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/dishka/test_scheduled.py +113 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/dishka/test_worker.py +162 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/rabbit/test_inline_schedules.py +102 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/redis/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/redis/test_delivery.py +136 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/redis/test_inline_schedules.py +117 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/redis/test_topologies.py +157 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/service_bus/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/service_bus/test_delivery.py +280 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/sqs/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/sqs/test_delivery.py +359 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/test_memory.py +203 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/test_rabbit.py +81 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/test_rabbit_routing.py +143 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/ydb/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/ydb/test_delivery.py +263 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/zmq/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/zmq/test_delivery.py +97 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/brokers/zmq/test_inline_schedules.py +152 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/cli/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/cli/test_runtime.py +196 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/conftest.py +3 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/dependencies/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/dependencies/dishka/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/dependencies/dishka/test_execution.py +174 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/middlewares/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/middlewares/retry/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/middlewares/retry/test_delay.py +90 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/middlewares/retry/test_handoff.py +131 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/middlewares/retry/test_scheduled.py +160 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/local/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/local/test_reader.py +49 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/nats/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/nats/test_delivery.py +142 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/postgresql/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/postgresql/test_delivery.py +149 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/redis/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/redis/test_delivery.py +88 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/redis/test_topologies.py +52 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/s3/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/s3/test_delivery.py +203 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/ydb/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/results/ydb/test_delivery.py +162 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/composition/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/composition/test_dispatch.py +167 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/nats/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/nats/test_delivery.py +241 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/postgresql/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/postgresql/test_delivery.py +193 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/redis/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/redis/test_delivery.py +257 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/redis/test_topologies.py +231 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/ydb/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/integration/taskiq/schedulers/sources/ydb/test_delivery.py +171 -0
- papilio_tasks-3.0.0/tests/packaging/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/packaging/test_installed_package.py +367 -0
- papilio_tasks-3.0.0/tests/packaging/test_release_metadata.py +26 -0
- papilio_tasks-3.0.0/tests/unit/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/kafka/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/kafka/test_lifecycle.py +34 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/redis/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/redis/test_producer.py +55 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/service_bus/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/service_bus/test_lifecycle.py +63 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/sqs/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/sqs/test_aio_lifecycle.py +43 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/test_memory_app.py +47 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/test_rabbit_app.py +122 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/ydb/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/brokers/ydb/test_lifecycle.py +91 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/cli/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/cli/test_startup.py +53 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/schedulers/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/schedulers/sources/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/schedulers/sources/redis/__init__.py +0 -0
- papilio_tasks-3.0.0/tests/unit/taskiq/schedulers/sources/redis/test_cluster_reads.py +40 -0
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
publish:
|
|
9
|
+
description: Publish the verified tag to PyPI and GitHub Releases
|
|
10
|
+
type: boolean
|
|
11
|
+
required: false
|
|
12
|
+
default: false
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
quality:
|
|
23
|
+
name: Style, types and unit tests
|
|
24
|
+
runs-on: ubuntu-24.04
|
|
25
|
+
timeout-minutes: 10
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
28
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
29
|
+
with:
|
|
30
|
+
python-version: '3.13'
|
|
31
|
+
cache: pip
|
|
32
|
+
cache-dependency-path: pyproject.toml
|
|
33
|
+
- name: Install development tools
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
36
|
+
python -m pip install --group dev '.[taskiq-rabbit-dishka,taskiq-redis,taskiq-nats,taskiq-kafka,taskiq-zmq,taskiq-sqs,taskiq-aio-sqs,taskiq-postgresql,taskiq-postgres-schedule,taskiq-ydb,taskiq-service-bus]'
|
|
37
|
+
- name: Check style and types
|
|
38
|
+
run: |
|
|
39
|
+
ruff check .
|
|
40
|
+
ruff format --check .
|
|
41
|
+
pyright
|
|
42
|
+
- name: Run unit tests and release metadata checks
|
|
43
|
+
run: python -m pytest -q tests/unit tests/packaging/test_release_metadata.py
|
|
44
|
+
|
|
45
|
+
package:
|
|
46
|
+
name: Build and verify distributions
|
|
47
|
+
runs-on: ubuntu-24.04
|
|
48
|
+
timeout-minutes: 10
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
51
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
52
|
+
with:
|
|
53
|
+
python-version: '3.13'
|
|
54
|
+
- name: Install build tools
|
|
55
|
+
run: |
|
|
56
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
57
|
+
python -m pip install --group build
|
|
58
|
+
- name: Verify release tag
|
|
59
|
+
if: github.ref_type == 'tag'
|
|
60
|
+
run: |
|
|
61
|
+
version=$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
|
|
62
|
+
test "$GITHUB_REF_NAME" = "v$version"
|
|
63
|
+
- name: Build and check the wheel and source distribution
|
|
64
|
+
run: |
|
|
65
|
+
python -m build
|
|
66
|
+
python -m twine check --strict dist/*
|
|
67
|
+
- name: Verify release notes from the source distribution
|
|
68
|
+
if: github.ref_type == 'tag'
|
|
69
|
+
shell: bash
|
|
70
|
+
run: |
|
|
71
|
+
version=${GITHUB_REF_NAME#v}
|
|
72
|
+
archives=(dist/*.tar.gz)
|
|
73
|
+
tar -xOf "${archives[0]}" --wildcards '*/CHANGELOG.md' |
|
|
74
|
+
awk -v heading="## $version" '
|
|
75
|
+
$0 == heading { section=1; matches++; next }
|
|
76
|
+
/^## / { section=0 }
|
|
77
|
+
section { print }
|
|
78
|
+
END { if (matches != 1) exit 1 }
|
|
79
|
+
' > release-notes.md
|
|
80
|
+
grep -q '[^[:space:]]' release-notes.md
|
|
81
|
+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
|
|
82
|
+
if: github.ref_type == 'tag'
|
|
83
|
+
with:
|
|
84
|
+
name: release-notes
|
|
85
|
+
path: release-notes.md
|
|
86
|
+
if-no-files-found: error
|
|
87
|
+
retention-days: 7
|
|
88
|
+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
|
|
89
|
+
with:
|
|
90
|
+
name: distributions
|
|
91
|
+
path: dist/
|
|
92
|
+
if-no-files-found: error
|
|
93
|
+
retention-days: 7
|
|
94
|
+
|
|
95
|
+
installed-package:
|
|
96
|
+
name: ${{ matrix.profile }} on Python ${{ matrix.python-version }}
|
|
97
|
+
needs: package
|
|
98
|
+
runs-on: ubuntu-24.04
|
|
99
|
+
timeout-minutes: 15
|
|
100
|
+
strategy:
|
|
101
|
+
fail-fast: false
|
|
102
|
+
matrix:
|
|
103
|
+
python-version: ['3.11', '3.12', '3.13', '3.14']
|
|
104
|
+
profile: [base]
|
|
105
|
+
include:
|
|
106
|
+
- python-version: '3.11'
|
|
107
|
+
profile: taskiq
|
|
108
|
+
- python-version: '3.11'
|
|
109
|
+
profile: taskiq-dishka
|
|
110
|
+
- python-version: '3.11'
|
|
111
|
+
profile: taskiq-zmq
|
|
112
|
+
- python-version: '3.11'
|
|
113
|
+
profile: taskiq-rabbit
|
|
114
|
+
- python-version: '3.11'
|
|
115
|
+
profile: faststream
|
|
116
|
+
- python-version: '3.11'
|
|
117
|
+
profile: all
|
|
118
|
+
- python-version: '3.14'
|
|
119
|
+
profile: all
|
|
120
|
+
steps:
|
|
121
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
122
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
123
|
+
with:
|
|
124
|
+
python-version: ${{ matrix.python-version }}
|
|
125
|
+
cache: pip
|
|
126
|
+
cache-dependency-path: pyproject.toml
|
|
127
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
128
|
+
with:
|
|
129
|
+
name: distributions
|
|
130
|
+
path: dist/
|
|
131
|
+
- name: Verify installation outside the checkout
|
|
132
|
+
working-directory: ${{ runner.temp }}
|
|
133
|
+
env:
|
|
134
|
+
PAPILIO_TEST_PROFILE: ${{ matrix.profile }}
|
|
135
|
+
shell: bash
|
|
136
|
+
run: |
|
|
137
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
138
|
+
target=${wheels[0]}
|
|
139
|
+
if [[ "$PAPILIO_TEST_PROFILE" != base ]]; then
|
|
140
|
+
target="$target[$PAPILIO_TEST_PROFILE]"
|
|
141
|
+
fi
|
|
142
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
143
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "$target"
|
|
144
|
+
python -m pip check
|
|
145
|
+
python -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py"
|
|
146
|
+
- name: Run InMemory tasks and schedules with only the Taskiq extra
|
|
147
|
+
if: matrix.profile == 'taskiq'
|
|
148
|
+
working-directory: ${{ runner.temp }}
|
|
149
|
+
run: |
|
|
150
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
151
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/test_memory.py" \
|
|
152
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/schedulers/composition" \
|
|
153
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/local"
|
|
154
|
+
- name: Run ZeroMQ tasks over TCP
|
|
155
|
+
if: matrix.profile == 'taskiq-zmq'
|
|
156
|
+
working-directory: ${{ runner.temp }}
|
|
157
|
+
run: python -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/zmq"
|
|
158
|
+
- name: Verify Dishka worker scopes with InMemory
|
|
159
|
+
if: matrix.profile == 'taskiq-dishka'
|
|
160
|
+
working-directory: ${{ runner.temp }}
|
|
161
|
+
run: python -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/integration/taskiq/dependencies/dishka"
|
|
162
|
+
|
|
163
|
+
taskiq-brokers:
|
|
164
|
+
name: Taskiq brokers on RabbitMQ
|
|
165
|
+
needs: package
|
|
166
|
+
runs-on: ubuntu-24.04
|
|
167
|
+
timeout-minutes: 10
|
|
168
|
+
services:
|
|
169
|
+
redis:
|
|
170
|
+
image: redis:8.10.3-trixie
|
|
171
|
+
ports:
|
|
172
|
+
- 6379/tcp
|
|
173
|
+
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 12
|
|
174
|
+
rabbitmq:
|
|
175
|
+
image: rabbitmq:4.4.1-alpine
|
|
176
|
+
env:
|
|
177
|
+
RABBITMQ_DEFAULT_USER: papilio_test
|
|
178
|
+
RABBITMQ_DEFAULT_PASS: papilio_test
|
|
179
|
+
ports:
|
|
180
|
+
- 5672/tcp
|
|
181
|
+
options: >-
|
|
182
|
+
--health-cmd "rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_port_connectivity"
|
|
183
|
+
--health-interval 5s
|
|
184
|
+
--health-timeout 5s
|
|
185
|
+
--health-retries 12
|
|
186
|
+
steps:
|
|
187
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
188
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
189
|
+
with:
|
|
190
|
+
python-version: '3.13'
|
|
191
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
192
|
+
with:
|
|
193
|
+
name: distributions
|
|
194
|
+
path: dist/
|
|
195
|
+
- name: Verify installed brokers and real delivery
|
|
196
|
+
working-directory: ${{ runner.temp }}
|
|
197
|
+
env:
|
|
198
|
+
PAPILIO_TEST_PROFILE: taskiq-rabbit-dishka
|
|
199
|
+
PAPILIO_TEST_RABBITMQ_URL: amqp://papilio_test:papilio_test@127.0.0.1:${{ job.services.rabbitmq.ports['5672'] }}/
|
|
200
|
+
shell: bash
|
|
201
|
+
run: |
|
|
202
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
203
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
204
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-rabbit-dishka]"
|
|
205
|
+
python -m pip check
|
|
206
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
207
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
208
|
+
"$GITHUB_WORKSPACE"/tests/integration/taskiq/brokers/test_rabbit*.py \
|
|
209
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/rabbit" \
|
|
210
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/middlewares/retry"
|
|
211
|
+
- name: Verify Redis results and scheduled execution with RabbitMQ
|
|
212
|
+
working-directory: ${{ runner.temp }}
|
|
213
|
+
env:
|
|
214
|
+
PAPILIO_TEST_RABBITMQ_URL: amqp://papilio_test:papilio_test@127.0.0.1:${{ job.services.rabbitmq.ports['5672'] }}/
|
|
215
|
+
PAPILIO_TEST_REDIS_URL: redis://127.0.0.1:${{ job.services.redis.ports['6379'] }}/0
|
|
216
|
+
shell: bash
|
|
217
|
+
run: |
|
|
218
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
219
|
+
python -m pip install "${wheels[0]}[taskiq-rabbit-dishka,taskiq-redis]"
|
|
220
|
+
python -m pip check
|
|
221
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
222
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/redis/test_delivery.py" \
|
|
223
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/rabbit/dishka/test_scheduled.py" \
|
|
224
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/middlewares/retry/test_scheduled.py"
|
|
225
|
+
|
|
226
|
+
taskiq-redis:
|
|
227
|
+
name: Taskiq brokers on Redis
|
|
228
|
+
needs: package
|
|
229
|
+
runs-on: ubuntu-24.04
|
|
230
|
+
timeout-minutes: 10
|
|
231
|
+
services:
|
|
232
|
+
redis:
|
|
233
|
+
image: redis:8.10.3-trixie
|
|
234
|
+
ports:
|
|
235
|
+
- 6379/tcp
|
|
236
|
+
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 5s --health-retries 12
|
|
237
|
+
steps:
|
|
238
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
239
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
240
|
+
with:
|
|
241
|
+
python-version: '3.13'
|
|
242
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
243
|
+
with:
|
|
244
|
+
name: distributions
|
|
245
|
+
path: dist/
|
|
246
|
+
- name: Install Redis topology test tools
|
|
247
|
+
run: |
|
|
248
|
+
sudo apt-get update -qq
|
|
249
|
+
sudo apt-get install -y --no-install-recommends redis-server
|
|
250
|
+
- name: Verify installed brokers and real delivery
|
|
251
|
+
working-directory: ${{ runner.temp }}
|
|
252
|
+
env:
|
|
253
|
+
PAPILIO_TEST_PROFILE: taskiq-redis
|
|
254
|
+
PAPILIO_TEST_REDIS_URL: redis://127.0.0.1:${{ job.services.redis.ports['6379'] }}/0
|
|
255
|
+
PAPILIO_TEST_REDIS_TOPOLOGIES: '1'
|
|
256
|
+
shell: bash
|
|
257
|
+
run: |
|
|
258
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
259
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
260
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-redis]"
|
|
261
|
+
python -m pip check
|
|
262
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
263
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
264
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/redis" \
|
|
265
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/schedulers/sources/redis" \
|
|
266
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/cli" \
|
|
267
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/redis/test_topologies.py"
|
|
268
|
+
- name: Verify ZeroMQ retries scheduled in Redis
|
|
269
|
+
working-directory: ${{ runner.temp }}
|
|
270
|
+
env:
|
|
271
|
+
PAPILIO_TEST_REDIS_URL: redis://127.0.0.1:${{ job.services.redis.ports['6379'] }}/0
|
|
272
|
+
shell: bash
|
|
273
|
+
run: |
|
|
274
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
275
|
+
python -m pip install "${wheels[0]}[taskiq-redis,taskiq-zmq]"
|
|
276
|
+
python -m pip check
|
|
277
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
278
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/zmq/test_inline_schedules.py"
|
|
279
|
+
|
|
280
|
+
taskiq-nats:
|
|
281
|
+
name: Taskiq brokers on NATS
|
|
282
|
+
needs: package
|
|
283
|
+
runs-on: ubuntu-24.04
|
|
284
|
+
timeout-minutes: 10
|
|
285
|
+
steps:
|
|
286
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
287
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
288
|
+
with:
|
|
289
|
+
python-version: '3.13'
|
|
290
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
291
|
+
with:
|
|
292
|
+
name: distributions
|
|
293
|
+
path: dist/
|
|
294
|
+
- name: Verify installed brokers and real delivery
|
|
295
|
+
working-directory: ${{ runner.temp }}
|
|
296
|
+
env:
|
|
297
|
+
PAPILIO_TEST_PROFILE: taskiq-nats
|
|
298
|
+
shell: bash
|
|
299
|
+
run: |
|
|
300
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
301
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
302
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-nats]"
|
|
303
|
+
python -m pip check
|
|
304
|
+
container=$(docker run --detach --rm --publish 127.0.0.1::4222 nats:2.11.8-alpine -js)
|
|
305
|
+
trap 'docker rm --force "$container" >/dev/null' EXIT
|
|
306
|
+
endpoint=$(docker port "$container" 4222/tcp)
|
|
307
|
+
export PAPILIO_TEST_NATS_URL="nats://$endpoint"
|
|
308
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
309
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
310
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/nats" \
|
|
311
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/schedulers/sources/nats" \
|
|
312
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/nats"
|
|
313
|
+
|
|
314
|
+
taskiq-kafka:
|
|
315
|
+
name: Taskiq brokers on Kafka
|
|
316
|
+
needs: package
|
|
317
|
+
runs-on: ubuntu-24.04
|
|
318
|
+
timeout-minutes: 10
|
|
319
|
+
steps:
|
|
320
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
321
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
322
|
+
with:
|
|
323
|
+
python-version: '3.13'
|
|
324
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
325
|
+
with:
|
|
326
|
+
name: distributions
|
|
327
|
+
path: dist/
|
|
328
|
+
- name: Verify installed brokers and real delivery
|
|
329
|
+
working-directory: ${{ runner.temp }}
|
|
330
|
+
env:
|
|
331
|
+
PAPILIO_TEST_PROFILE: taskiq-kafka
|
|
332
|
+
PAPILIO_TEST_KAFKA_SERVERS: 127.0.0.1:19092
|
|
333
|
+
shell: bash
|
|
334
|
+
run: |
|
|
335
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
336
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
337
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-kafka]"
|
|
338
|
+
python -m pip check
|
|
339
|
+
container=$(docker run --detach --rm --network host \
|
|
340
|
+
--env KAFKA_NODE_ID=1 \
|
|
341
|
+
--env KAFKA_PROCESS_ROLES=broker,controller \
|
|
342
|
+
--env KAFKA_LISTENERS=PLAINTEXT://127.0.0.1:19092,CONTROLLER://127.0.0.1:19093 \
|
|
343
|
+
--env KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:19092 \
|
|
344
|
+
--env KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER \
|
|
345
|
+
--env KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT \
|
|
346
|
+
--env KAFKA_CONTROLLER_QUORUM_VOTERS=1@127.0.0.1:19093 \
|
|
347
|
+
--env KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \
|
|
348
|
+
--env KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0 \
|
|
349
|
+
--env KAFKA_AUTO_CREATE_TOPICS_ENABLE=false apache/kafka:3.9.2)
|
|
350
|
+
trap 'docker rm --force "$container" >/dev/null' EXIT
|
|
351
|
+
if ! timeout 45 bash -c 'until (: >/dev/tcp/127.0.0.1/19092) 2>/dev/null; do sleep 1; done'; then
|
|
352
|
+
docker logs "$container"
|
|
353
|
+
exit 1
|
|
354
|
+
fi
|
|
355
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
356
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
357
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/kafka"
|
|
358
|
+
|
|
359
|
+
taskiq-sqs:
|
|
360
|
+
name: Taskiq SQS via ${{ matrix.profile }}
|
|
361
|
+
needs: package
|
|
362
|
+
runs-on: ubuntu-24.04
|
|
363
|
+
timeout-minutes: 10
|
|
364
|
+
strategy:
|
|
365
|
+
fail-fast: false
|
|
366
|
+
matrix:
|
|
367
|
+
profile: [taskiq-sqs, taskiq-aio-sqs]
|
|
368
|
+
steps:
|
|
369
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
370
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
371
|
+
with:
|
|
372
|
+
python-version: '3.13'
|
|
373
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
374
|
+
with:
|
|
375
|
+
name: distributions
|
|
376
|
+
path: dist/
|
|
377
|
+
- name: Verify installed adapter against ElasticMQ
|
|
378
|
+
working-directory: ${{ runner.temp }}
|
|
379
|
+
env:
|
|
380
|
+
PAPILIO_TEST_PROFILE: ${{ matrix.profile }}
|
|
381
|
+
shell: bash
|
|
382
|
+
run: |
|
|
383
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
384
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
385
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[$PAPILIO_TEST_PROFILE]"
|
|
386
|
+
python -m pip check
|
|
387
|
+
cat > elasticmq.conf <<'CONF'
|
|
388
|
+
include classpath("application.conf")
|
|
389
|
+
node-address.host = "*"
|
|
390
|
+
CONF
|
|
391
|
+
container=$(docker run --detach --rm --publish 127.0.0.1::9324 \
|
|
392
|
+
--mount "type=bind,src=$PWD/elasticmq.conf,dst=/opt/elasticmq.conf,readonly" \
|
|
393
|
+
softwaremill/elasticmq-native:1.6.16)
|
|
394
|
+
trap 'docker rm --force "$container" >/dev/null' EXIT
|
|
395
|
+
address=$(docker port "$container" 9324/tcp)
|
|
396
|
+
export PAPILIO_TEST_SQS_URL="http://$address/"
|
|
397
|
+
if ! curl --fail --silent --show-error --retry 5 --retry-all-errors \
|
|
398
|
+
--connect-timeout 2 --max-time 3 \
|
|
399
|
+
--header 'Content-Type: application/x-amz-json-1.0' \
|
|
400
|
+
--header 'X-Amz-Target: AmazonSQS.ListQueues' \
|
|
401
|
+
--data '{}' "$PAPILIO_TEST_SQS_URL" >/dev/null; then
|
|
402
|
+
docker logs "$container"
|
|
403
|
+
exit 1
|
|
404
|
+
fi
|
|
405
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
406
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
407
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/sqs"
|
|
408
|
+
- name: Verify native S3 result records on VersityGW
|
|
409
|
+
working-directory: ${{ runner.temp }}
|
|
410
|
+
env:
|
|
411
|
+
PAPILIO_TEST_S3_ACCESS_KEY: papilio_test
|
|
412
|
+
PAPILIO_TEST_S3_SECRET_KEY: papilio-test-secret
|
|
413
|
+
shell: bash
|
|
414
|
+
run: |
|
|
415
|
+
s3_service=$(mktemp -d)
|
|
416
|
+
package="$s3_service/versitygw.deb"
|
|
417
|
+
curl --fail --silent --show-error --location --retry 3 \
|
|
418
|
+
--connect-timeout 5 --max-time 60 --output "$package" \
|
|
419
|
+
https://github.com/versity/versitygw/releases/download/v1.7.0/versitygw_1.7.0_linux_amd64.deb
|
|
420
|
+
printf '%s %s\n' 4389c34a99c46ceec808d0394559a9c995c4c754329021490938aa11cf05e382 \
|
|
421
|
+
"$package" | sha256sum --check
|
|
422
|
+
dpkg-deb --extract "$package" "$s3_service"
|
|
423
|
+
mkdir "$s3_service/data"
|
|
424
|
+
export ROOT_ACCESS_KEY="$PAPILIO_TEST_S3_ACCESS_KEY"
|
|
425
|
+
export ROOT_SECRET_KEY="$PAPILIO_TEST_S3_SECRET_KEY"
|
|
426
|
+
export PAPILIO_TEST_S3_URL=http://127.0.0.1:17070
|
|
427
|
+
"$s3_service/usr/bin/versitygw" --port 127.0.0.1:17070 --health /health \
|
|
428
|
+
posix "$s3_service/data" > "$s3_service/server.log" 2>&1 &
|
|
429
|
+
server=$!
|
|
430
|
+
trap 'kill "$server" 2>/dev/null || true' EXIT
|
|
431
|
+
if ! curl --fail --silent --show-error --retry 5 --retry-all-errors \
|
|
432
|
+
--connect-timeout 2 --max-time 3 \
|
|
433
|
+
"$PAPILIO_TEST_S3_URL/health" >/dev/null; then
|
|
434
|
+
cat "$s3_service/server.log"
|
|
435
|
+
exit 1
|
|
436
|
+
fi
|
|
437
|
+
python -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/integration/taskiq/results/s3"
|
|
438
|
+
|
|
439
|
+
taskiq-postgresql:
|
|
440
|
+
name: Taskiq on PostgreSQL
|
|
441
|
+
needs: package
|
|
442
|
+
runs-on: ubuntu-24.04
|
|
443
|
+
timeout-minutes: 10
|
|
444
|
+
services:
|
|
445
|
+
postgresql:
|
|
446
|
+
image: postgres:17-alpine
|
|
447
|
+
env:
|
|
448
|
+
POSTGRES_DB: papilio
|
|
449
|
+
POSTGRES_PASSWORD: papilio-test
|
|
450
|
+
ports:
|
|
451
|
+
- 5432/tcp
|
|
452
|
+
options: >-
|
|
453
|
+
--health-cmd "pg_isready -U postgres -d papilio"
|
|
454
|
+
--health-interval 2s
|
|
455
|
+
--health-timeout 2s
|
|
456
|
+
--health-retries 15
|
|
457
|
+
steps:
|
|
458
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
459
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
460
|
+
with:
|
|
461
|
+
python-version: '3.13'
|
|
462
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
463
|
+
with:
|
|
464
|
+
name: distributions
|
|
465
|
+
path: dist/
|
|
466
|
+
- name: Verify PostgreSQL delivery and stored results
|
|
467
|
+
working-directory: ${{ runner.temp }}
|
|
468
|
+
env:
|
|
469
|
+
PAPILIO_TEST_PROFILE: taskiq-postgresql
|
|
470
|
+
PAPILIO_TEST_POSTGRESQL_DSN: postgresql://postgres:papilio-test@127.0.0.1:${{ job.services.postgresql.ports['5432'] }}/papilio
|
|
471
|
+
shell: bash
|
|
472
|
+
run: |
|
|
473
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
474
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
475
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-postgresql]"
|
|
476
|
+
python -m pip check
|
|
477
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
478
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
479
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/postgresql" \
|
|
480
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/postgresql"
|
|
481
|
+
- name: Verify the independent PostgreSQL schedule extra and real dispatch
|
|
482
|
+
working-directory: ${{ runner.temp }}
|
|
483
|
+
env:
|
|
484
|
+
PAPILIO_TEST_PROFILE: taskiq-postgres-schedule
|
|
485
|
+
PAPILIO_TEST_POSTGRESQL_DSN: postgresql://postgres:papilio-test@127.0.0.1:${{ job.services.postgresql.ports['5432'] }}/papilio
|
|
486
|
+
shell: bash
|
|
487
|
+
run: |
|
|
488
|
+
python -m venv "$RUNNER_TEMP/postgres-schedule-venv"
|
|
489
|
+
schedule_python="$RUNNER_TEMP/postgres-schedule-venv/bin/python"
|
|
490
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
491
|
+
"$schedule_python" -m pip install --upgrade 'pip>=25.1'
|
|
492
|
+
"$schedule_python" -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-postgres-schedule]"
|
|
493
|
+
"$schedule_python" -m pip check
|
|
494
|
+
"$schedule_python" -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py"
|
|
495
|
+
"$schedule_python" -m pip install "${wheels[0]}[taskiq-postgresql,taskiq-postgres-schedule]"
|
|
496
|
+
"$schedule_python" -m pip check
|
|
497
|
+
"$schedule_python" -I -m pytest -q --import-mode=importlib "$GITHUB_WORKSPACE/tests/integration/taskiq/schedulers/sources/postgresql"
|
|
498
|
+
|
|
499
|
+
taskiq-ydb:
|
|
500
|
+
name: Taskiq on YDB
|
|
501
|
+
needs: package
|
|
502
|
+
runs-on: ubuntu-24.04
|
|
503
|
+
timeout-minutes: 10
|
|
504
|
+
steps:
|
|
505
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
506
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
507
|
+
with:
|
|
508
|
+
python-version: '3.13'
|
|
509
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
510
|
+
with:
|
|
511
|
+
name: distributions
|
|
512
|
+
path: dist/
|
|
513
|
+
- name: Verify YDB delivery, schedules and stored results
|
|
514
|
+
working-directory: ${{ runner.temp }}
|
|
515
|
+
env:
|
|
516
|
+
PAPILIO_TEST_PROFILE: taskiq-ydb
|
|
517
|
+
PAPILIO_TEST_YDB_ENDPOINT: grpc://localhost:2136
|
|
518
|
+
shell: bash
|
|
519
|
+
run: |
|
|
520
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
521
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
522
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-ydb]"
|
|
523
|
+
python -m pip check
|
|
524
|
+
container=$(docker run --detach --rm --hostname localhost \
|
|
525
|
+
--publish 127.0.0.1:2136:2136 \
|
|
526
|
+
--env YDB_USE_IN_MEMORY_PDISKS=true \
|
|
527
|
+
--env YDB_GRPC_ENABLE_TLS=false ydbplatform/local-ydb:26.3.1.25)
|
|
528
|
+
trap 'docker rm --force "$container" >/dev/null' EXIT
|
|
529
|
+
if ! timeout 90 bash -c '
|
|
530
|
+
until timeout 5 docker exec "$1" /ydb -e grpc://localhost:2136 -d /local --no-discovery sql -s "SELECT 1;" >/dev/null 2>&1; do
|
|
531
|
+
sleep 2
|
|
532
|
+
done
|
|
533
|
+
' _ "$container"; then
|
|
534
|
+
docker logs "$container"
|
|
535
|
+
exit 1
|
|
536
|
+
fi
|
|
537
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
538
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
539
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/ydb" \
|
|
540
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/results/ydb" \
|
|
541
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/schedulers/sources/ydb"
|
|
542
|
+
|
|
543
|
+
taskiq-service-bus:
|
|
544
|
+
name: Taskiq brokers on Service Bus
|
|
545
|
+
needs: package
|
|
546
|
+
runs-on: ubuntu-24.04
|
|
547
|
+
timeout-minutes: 10
|
|
548
|
+
steps:
|
|
549
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
550
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
551
|
+
with:
|
|
552
|
+
python-version: '3.13'
|
|
553
|
+
- uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
|
|
554
|
+
with:
|
|
555
|
+
dotnet-version: '10.0.x'
|
|
556
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
557
|
+
with:
|
|
558
|
+
name: distributions
|
|
559
|
+
path: dist/
|
|
560
|
+
- name: Verify installed broker and AMQP delivery against AlmostServiceBus
|
|
561
|
+
working-directory: ${{ runner.temp }}
|
|
562
|
+
env:
|
|
563
|
+
PAPILIO_TEST_PROFILE: taskiq-service-bus
|
|
564
|
+
PAPILIO_TEST_SERVICE_BUS_CONNECTION: Endpoint=sb://localhost:5672;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=emulator;UseDevelopmentEmulator=true
|
|
565
|
+
PAPILIO_TEST_SERVICE_BUS_ADMIN: http://localhost:5300
|
|
566
|
+
shell: bash
|
|
567
|
+
run: |
|
|
568
|
+
wheels=("$GITHUB_WORKSPACE"/dist/*.whl)
|
|
569
|
+
python -m pip install --upgrade 'pip>=25.1'
|
|
570
|
+
python -m pip install --group "$GITHUB_WORKSPACE/pyproject.toml:test" "${wheels[0]}[taskiq-service-bus]"
|
|
571
|
+
python -m pip check
|
|
572
|
+
dotnet tool install --tool-path "$PWD/service-bus-tool" AlmostServiceBus.Tool --version 0.8.2
|
|
573
|
+
"$PWD/service-bus-tool/almost-servicebus" --DashboardPort 0 > service-bus.log 2>&1 &
|
|
574
|
+
emulator=$!
|
|
575
|
+
trap 'kill "$emulator" 2>/dev/null || true' EXIT
|
|
576
|
+
if ! curl --fail --silent --show-error --retry 5 --retry-all-errors \
|
|
577
|
+
--connect-timeout 2 --max-time 3 \
|
|
578
|
+
"$PAPILIO_TEST_SERVICE_BUS_ADMIN/\$Resources/Queues?api-version=2021-05" >/dev/null; then
|
|
579
|
+
cat service-bus.log
|
|
580
|
+
exit 1
|
|
581
|
+
fi
|
|
582
|
+
python -I -m pytest -q --import-mode=importlib \
|
|
583
|
+
"$GITHUB_WORKSPACE/tests/packaging/test_installed_package.py" \
|
|
584
|
+
"$GITHUB_WORKSPACE/tests/integration/taskiq/brokers/service_bus"
|
|
585
|
+
|
|
586
|
+
publish-package:
|
|
587
|
+
name: Publish to PyPI
|
|
588
|
+
if: github.event_name == 'workflow_dispatch' && github.ref_type == 'tag' && inputs.publish
|
|
589
|
+
needs: [quality, installed-package, taskiq-brokers, taskiq-redis, taskiq-nats, taskiq-kafka, taskiq-sqs, taskiq-postgresql, taskiq-ydb, taskiq-service-bus]
|
|
590
|
+
runs-on: ubuntu-24.04
|
|
591
|
+
timeout-minutes: 10
|
|
592
|
+
environment:
|
|
593
|
+
name: pypi
|
|
594
|
+
url: https://pypi.org/project/papilio-tasks/
|
|
595
|
+
permissions:
|
|
596
|
+
id-token: write
|
|
597
|
+
steps:
|
|
598
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
599
|
+
with:
|
|
600
|
+
name: distributions
|
|
601
|
+
path: dist/
|
|
602
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
603
|
+
|
|
604
|
+
github-release:
|
|
605
|
+
name: Create GitHub release
|
|
606
|
+
needs: publish-package
|
|
607
|
+
runs-on: ubuntu-24.04
|
|
608
|
+
timeout-minutes: 10
|
|
609
|
+
permissions:
|
|
610
|
+
contents: write
|
|
611
|
+
steps:
|
|
612
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
613
|
+
with:
|
|
614
|
+
name: distributions
|
|
615
|
+
path: dist/
|
|
616
|
+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
|
|
617
|
+
with:
|
|
618
|
+
name: release-notes
|
|
619
|
+
- name: Publish release notes and distributions
|
|
620
|
+
shell: bash
|
|
621
|
+
env:
|
|
622
|
+
GH_TOKEN: ${{ github.token }}
|
|
623
|
+
run: |
|
|
624
|
+
version=${GITHUB_REF_NAME#v}
|
|
625
|
+
flags=()
|
|
626
|
+
if [[ "$version" =~ (a|b|rc|\.dev)[0-9]+ ]]; then
|
|
627
|
+
flags+=(--prerelease)
|
|
628
|
+
fi
|
|
629
|
+
gh release create "$GITHUB_REF_NAME" dist/* --repo "$GITHUB_REPOSITORY" \
|
|
630
|
+
--verify-tag --title "$GITHUB_REF_NAME" --notes-file release-notes.md "${flags[@]}"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 3.0.0
|
|
6
|
+
|
|
7
|
+
- Replaced the Taskiq application methods `worker()` and `scheduler()` with `create_broker()` and `create_scheduler()`. Call `create_scheduler()` when the application runs beat. The CLI continues to accept the configured broker and scheduler objects.
|
|
8
|
+
- Added direct standalone Redis app constructors for Streams, Lists and Pub/Sub.
|
|
9
|
+
- Added a Rich startup panel with a Papilio wordmark, command and target to the interactive Taskiq worker and beat commands.
|
|
10
|
+
- Render native Taskiq logs and tracebacks with Rich in interactive terminals. Preserve Taskiq's plain logging for redirected output and custom worker formats.
|
|
11
|
+
|
|
12
|
+
In the module used as the CLI target, replace `broker = app.worker()` with `broker = app.create_broker()` and `scheduler = app.scheduler()` with `scheduler = app.create_scheduler()`. Run `papilio-tasks broker run jobs:broker` for task execution and `papilio-tasks scheduler beat jobs:scheduler` for dispatching schedules, where `jobs` is your module name.
|
|
13
|
+
|
|
14
|
+
## 2.0.0
|
|
15
|
+
|
|
16
|
+
This release introduces the rewritten Taskiq integration. Import routers and applications from the selected broker package under `papilio_tasks.taskiq.brokers`. Include each router in the application before constructing workers, producer scopes or schedulers. Use `papilio-tasks broker run` and `papilio-tasks scheduler beat` for their respective processes. See the [Taskiq guides](docs/README.md) for installation and wire compatibility.
|
|
17
|
+
|
|
18
|
+
- Compose feature tasks with typed names, schedules, retry policies and labels on InMemory, RabbitMQ, Redis, NATS, Kafka, ZeroMQ, SQS, PostgreSQL, YDB and Azure Service Bus. Broker-specific routing stays with each adapter.
|
|
19
|
+
- Reuse one producer for the sending process lifespan. Use selectable extras for each transport, both SQS implementations, and the complete Taskiq stack.
|
|
20
|
+
- Run cron, interval and one-time schedules. Read, pause, resume, move and delete persisted records by ID through `papilio_tasks.taskiq.schedulers` with managed Redis, NATS KV, PostgreSQL and YDB sources.
|
|
21
|
+
- Retry matching errors immediately, through native transport delays where supported, or with a persistent schedule source. Attempts preserve the logical task ID. SQS FIFO uses a stable deduplication ID per attempt.
|
|
22
|
+
- Preserve the original task error when retry handoff is unconfirmed. Beat retries failed sends and retries cleanup separately after confirmed publication. Structured logs report execution and handoff outcomes.
|
|
23
|
+
- Resolve Dishka dependencies per execution, including retries. Register a provided service's method with `service_task()`, or share a RabbitMQ producer through an application-scoped provider.
|
|
24
|
+
- Retrieve typed results from InMemory, Redis, NATS Object Store, S3, PostgreSQL and YDB. PostgreSQL and YDB schedules and results retain their documented native record formats.
|
|
25
|
+
- Reuse task identity and dependency metadata across scheduling calls and startup hooks. Explicit registration remains the application composition API.
|
|
26
|
+
|
|
27
|
+
Before upgrading an existing deployment, preserve the registered task names, wire arguments, destinations and source configuration used by pending records. Follow the [wire compatibility guide](docs/taskiq/brokers.md#keep-task-messages-compatible) and the [schedule source guides](docs/taskiq/schedulers.md) for the applicable transports.
|
|
28
|
+
|
|
29
|
+
## 0.1.0.dev1
|
|
30
|
+
|
|
31
|
+
- Added opt-in installation for Taskiq, FastStream and their documented backend profiles.
|
|
32
|
+
- Added bilingual quickstarts, a learning guide and theme-aware branding.
|
|
33
|
+
- Added CI for lint, formatting, strict type checking, packaging and isolated installs.
|
|
34
|
+
|
|
35
|
+
## 0.1.0.dev0
|
|
36
|
+
|
|
37
|
+
- Established the typed package layout for the Taskiq and FastStream integrations.
|