notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
All times are UTC
Ukraine
Port details
py-celery-singleton Prevent duplicate celery tasks
0.3.1 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.3.1Version of this port present on the latest quarterly branch.
Maintainer: dvl@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-05-10 15:00:15
Last Update: 2023-06-27 19:34:34
Commit Hash: 3d9a815
Also Listed In: python
License: MIT
WWW:
https://github.com/steinitzu/celery-singleton
Description:
celery-singleton uses the JSON representation of a task's delay() or apply_async() arguments to generate a unique lock and stores it in redis. By default it uses the redis server of the celery result backend. If you use a different/no result backend or want to use a different redis server for celery-singleton, refer the configuration section for how to customize the redis. import time from celery_singleton import Singleton from somewhere import celery_app @celery_app.task(base=Singleton) def do_stuff(*args, **kwargs): time.sleep(4) return 'I just woke up' # run the task as normal async_result = do_stuff.delay(1, 2, 3, a='b') async_result2 = do_stuff.delay(1, 2, 3, a='b') # These are the same, task is only queued once assert async_result == async_result2
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}celery-singleton>0:devel/py-celery-singleton@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-celery-singleton/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-celery-singleton
  • pkg install py39-celery-singleton
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py39-celery-singleton listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py39-celery-singleton
Package flavors (<flavor>: <package>)
  • py39: py39-celery-singleton
distinfo:
TIMESTAMP = 1683049934 SHA256 (celery-singleton-0.3.1.tar.gz) = 260ce4978e631f8682ea0ccb03d7f3b87d42bc20e04e9bd46ddb78a2f8035d1e SIZE (celery-singleton-0.3.1.tar.gz) = 4659

Packages (timestamps in pop-ups are UTC):
py39-celery-singleton
ABIlatestquarterly
FreeBSD:12:aarch64-0.3.1
FreeBSD:12:amd640.3.10.3.1
FreeBSD:12:armv6--
FreeBSD:12:armv7--
FreeBSD:12:i3860.3.10.3.1
FreeBSD:12:mips--
FreeBSD:12:mips64--
FreeBSD:12:powerpc64--
FreeBSD:13:aarch640.3.10.3.1
FreeBSD:13:amd640.3.10.3.1
FreeBSD:13:armv6-0.3.1
FreeBSD:13:armv70.3.10.3.1
FreeBSD:13:i3860.3.10.3.1
FreeBSD:13:mips--
FreeBSD:13:mips64--
FreeBSD:13:powerpc64-0.3.1
FreeBSD:13:riscv64--
FreeBSD:14:aarch640.3.10.3.1
FreeBSD:14:amd640.3.10.3.1
FreeBSD:14:armv6--
FreeBSD:14:armv70.3.10.3.1
FreeBSD:14:i3860.3.10.3.1
FreeBSD:14:mips--
FreeBSD:14:mips64--
FreeBSD:14:powerpc640.3.10.3.1
FreeBSD:14:riscv64--
FreeBSD:15:amd640.3.1-
FreeBSD:15:armv6--
FreeBSD:15:armv70.3.1-
FreeBSD:15:i3860.3.1-
FreeBSD:15:mips64--
FreeBSD:15:powerpc640.3.1-
FreeBSD:15:riscv64--
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
Runtime dependencies:
  1. py39-redis>0 : databases/py-redis@py39
  2. py39-setuptools>=63.1.0 : devel/py-setuptools@py39
  3. python3.9 : lang/python39
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_py-celery-singleton
USES:
python:run
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/c/celery-singleton/
  2. https://pypi.org/packages/source/c/celery-singleton/
Collapse this list.

Number of commits found: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.3.1
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
0.3.1
10 May 2023 14:58:56
commit hash: e1fbe719d4258ee0106c22dc5a4189cf050148c4commit hash: e1fbe719d4258ee0106c22dc5a4189cf050148c4commit hash: e1fbe719d4258ee0106c22dc5a4189cf050148c4commit hash: e1fbe719d4258ee0106c22dc5a4189cf050148c4 files touched by this commit
Dan Langille (dvl) search for other commits by this committer
devel/py-celery-singleton: New port

Prevent duplicate celery tasks.

Number of commits found: 2