{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing/2"}],"enrichment":{"capability":"Prevents duplicate execution and queuing of Celery tasks by enforcing distributed locks, allowing you to ensure a task runs only once even if scheduled multiple times concurrently.","skillfed_tags":["celery-extension","task-locking","abandoned"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"celery-once","links":{"html":"https://skillfed.io/packages/celery-once","md":"https://skillfed.io/packages/celery-once.md","pypi":"https://pypi.org/project/celery-once/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-08-21","license_spdx":null,"license_treatment":"permissive","name":"celery_once","python_support":"unspecified","summary":"Allows you to prevent multiple execution and queuing of celery tasks."},"popularity":{"monthly_downloads":275459,"position":8176,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.1"}
