celery_once
Allows you to prevent multiple execution and queuing of celery tasks.
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2019, no commits since 2023) and unlikely to work with modern Celery or Python versions. If you need task deduplication in an active Celery project, seek a maintained alternative or implement locking directly using Redis or your message broker's native capabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Celery 4.0 or later, a running message broker (e.g.
- RabbitMQ), and a Redis instance or writable filesystem for lock storage.
- High install friction: the package has been abandoned since 2019 with no updates for over 2550 days, and it requires external infrastructure (Redis or file-based locking) to function.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, imposing no significant restrictions on use or redistribution in most contexts.
last release 2019-08-21 (2550 days) · last repo commit 2023-08-29 · 689 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 275,459 downloads/mo, #8,176 on PyPI
Alternatives
Verify before relying
pip install celery_once
from celery import Celery
from celery_once import QueueOnce
celery = Celery('tasks', broker='amqp://guest@localhost//')
celery.conf.ONCE = {'backend': 'celery_once.backends.Redis', 'settings': {'url': 'redis://localhost:6379/0', 'default_timeout': 3600}}
@celery.task(base=QueueOnce)
def my_task():
return "Done!"- Whether the package works reliably with Celery versions released after 2019 or with modern Python 3.10+.
- Whether the Redis backend handles connection failures or network partitions gracefully.
- Whether lock cleanup is guaranteed under all failure scenarios (e.g. task crashes, worker death).
What it is and what it does
Celery Once is a Celery extension that adds distributed task locking to prevent the same task from being queued or executed multiple times concurrently. It works by intercepting task scheduling calls (delay and apply_async) and checking a lock in a backend store (Redis or filesystem) before allowing execution. If a lock already exists, it raises an AlreadyQueued exception or returns None gracefully, depending on configuration.
The package lets you configure which task arguments determine lock identity, set lock timeouts, and choose when locks are released (after task completion or before execution). It is designed for scenarios where you want to ensure a long-running or resource-intensive task does not pile up in the queue or run in parallel, but the project has been unmaintained since 2019 and may not work reliably with current Celery and Python versions.
Use it for
- Prevent duplicate report generation tasks from queuing when a user clicks a button multiple times before the first report completes.
- Ensure only one data sync task runs at a time across a distributed worker pool, even if triggered by multiple sources.
- Block redundant cleanup or maintenance tasks from running concurrently when scheduled by multiple cron jobs or webhooks.
- Enforce single-execution semantics for expensive API calls or database operations triggered by task retries or event handlers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2019, no commits since 2023) and unlikely to work with modern Celery or Python versions. If you need task deduplication in an active Celery project, seek a maintained alternative or implement locking directly using Redis or your message broker's native capabilities.
Install
celery-once on PyPI
Before you install
High install friction: the package has been abandoned since 2019 with no updates for over 2550 days, and it requires external infrastructure (Redis or file-based locking) to function. No runtime dependencies are declared, but Celery itself is a hard requirement that must be installed separately.
Requires Celery 4.0 or later, a running message broker (e.g. RabbitMQ), and a Redis instance or writable filesystem for lock storage.
License in practice
BSD license is permissive, imposing no significant restrictions on use or redistribution in most contexts.
Quickstart
pip install celery_once
from celery import Celery
from celery_once import QueueOnce
celery = Celery('tasks', broker='amqp://guest@localhost//')
celery.conf.ONCE = {'backend': 'celery_once.backends.Redis', 'settings': {'url': 'redis://localhost:6379/0', 'default_timeout': 3600}}
@celery.task(base=QueueOnce)
def my_task():
return "Done!"
Verify before relying
- Whether the package works reliably with Celery versions released after 2019 or with modern Python 3.10+.
- Whether the Redis backend handles connection failures or network partitions gracefully.
- Whether lock cleanup is guaranteed under all failure scenarios (e.g. task crashes, worker death).
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,550 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 275,459 / month, #8,176 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: System :: Distributed Computing |
Evidence: celery_once-3.0.1.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “celery task locking”
- celery_oncePrevents duplicate execution and queuing of Celery tasks by enforcing…
- celery-singletonPrevents duplicate Celery tasks from being queued or running…
- django-pglockProvides Postgres advisory locks, table locks, and lock management…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also celery-singleton · celery-redbeat · celery · redlock · celery-batches · celery-stubs · aioredlock · redlock-py · gilknocker · wakepy