debian/0000755000000000000000000000000012263050623007165 5ustar debian/manpage.celeryev.sgml0000644000000000000000000000754512255006114013306 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 11 March 2010"> 1"> FladischerMichael@fladi.at"> CeleryEV"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Curses Event Viewer &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a monitoring tool for celeryd worker processes. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. Dump events to stdout. SEE ALSO celeryd (1), celerybeat (1), celeryctl(1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/copyright0000644000000000000000000001331312255006114011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: celery Upstream-Contact: Ask Solem Source: http://pypi.python.org/pypi/celery/ Files: * Copyright: 2009-2011, Ask Solem and contributors. License: BSD-solem Files: celery/utils/functional.py Copyright: 2001-2007, Python Software License: PSF-2 Files: celery/concurrency/processes/pool.py Copyright: 2007-2008, R Oudkerk License: BSD Files: debian/* Copyright: 2012-2013, Michael Fladischer 2010, Elliot Murphy License: BSD-solem License: BSD-solem Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of Ask Solem nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of author nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: PSF-2 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. debian/python-celery-doc.doc-base0000644000000000000000000000323612255006114014132 0ustar Document: python-celery-doc Title: Python Celery Documentation Author: Ask Solem Section: Programming/Python Format: HTML Index: /usr/share/doc/python-celery-doc/html/index.html Files: /usr/share/doc/python-celery-doc/html/*.html /usr/share/doc/python-celery-doc/html/django/*.html /usr/share/doc/python-celery-doc/html/getting-started/*.html /usr/share/doc/python-celery-doc/html/history/*.html /usr/share/doc/python-celery-doc/html/internals/*.html /usr/share/doc/python-celery-doc/html/internals/reference/*.html /usr/share/doc/python-celery-doc/html/reference/*.html /usr/share/doc/python-celery-doc/html/tutorials/*.html /usr/share/doc/python-celery-doc/html/userguide/*.html /usr/share/doc/python-celery-doc/html/_modules/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/utils/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/bin/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/backends/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/task/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/worker/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/concurrency/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/loaders/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/security/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/app/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/contrib/*.html /usr/share/doc/python-celery-doc/html/_modules/celery/events/*.html debian/python-celery-doc.links0000644000000000000000000000012212255006114013564 0ustar usr/share/doc/python-celery-doc/html/_sources usr/share/doc/python-celery-doc/rst debian/manpage.celeryctl.sgml0000644000000000000000000001575312255006114013456 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 10 November 2010"> 1"> FladischerMichael@fladi.at"> CELERYCTL"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Management Utility &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a command line utility to inspect and manage worker nodes. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. TODO Celery config module name (default: celeryconfig). Celery loaders module name (default: default). Don't colorize output. COMMANDS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. List active nodes in this cluster. Show the result of a task. Show all the tasks that are currently being executed. Show all the tasks reserved by the worker because they have the eta or countdown argument set. Show all tasks that have been prefetched by the worker, and is currently waiting to be executed (does not include tasks with an eta). List history of revoked tasks. List registered tasks. Show worker statistics. Enable events. Disable events. SEE ALSO celeryd (1), celerybeat (1), celeryev (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/manpage.camqadm.sgml0000644000000000000000000000704412255006114013065 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 11 March 2010"> 1"> FladischerMichael@fladi.at"> CAMQADM"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; AMQP API Command-line Shell &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a utility for command line access to the AMQP API for deleting queues/bindings/exchanges, experimentation and testing. OPTIONS This program has no options. SEE ALSO celeryd (1), celeryctl (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/changelog0000644000000000000000000001145612263050365011051 0ustar celery (3.1.6-1ubuntu1) trusty; urgency=medium * Merge with Debian; remaining changes: - Drop issue tracker for doc generation as it adds a build-dep that it is not really necessary for this package to build. This allows us to MIR celery without MIR'ing the dependency. -- Matthias Klose Tue, 07 Jan 2014 20:04:17 +0100 celery (3.1.6-1) unstable; urgency=low [ Michael Fladischer ] * New upstream release (Closes: #711338). * Bump Standards version to 3.9.5. * Bump Build-Depends on debhelper to >= 8.1.0 to satisfy build-arch and build-indep targets. * Add build dependency on python-openssl to enable more tests. * Add drop_downgrade.patch to remove upstream celery.app detection and removal code. * Add disable_unstable_tests.patch to disable randomly failing test. * Add fix_test_crontab_is_due.patch to fix timeshifts in tests. * Add locales to Build-Depends so LC_ALL=C.UTF-8 can be used. * Make Build-Depends on python-mock versioned with (>= 1.0.1). * Use LC_ALL=C.UTF-8 when running tests. * Refresh existing patches. * Install upstream changelog. * Update upstream homepage URL to the official one. * celeryd: + Move daemon management scripts to the separate celeryd package. + Document change in NEWS. + Install init scripts from extra instead of contrib. + Move default file from python-celery to celeryd package. + Move postinst and postrm files from python-celery to celeryd package. + Breaks python-celery (<< 3.0.24-1) to avoid file conflicts. + Do not define CELERYD_PID_FILE in /etc/default/celeryd to enable automatic generation by init.d script. + Drop init.d/celeryevcam as it is no longer shipped by upstream. * python-celery + Install supervisord from extra instead of contrib. + Add versioned dependency on python-billiard. + Bump dependency on python-kombu(-doc) to >= 2.5.15. + Add dependency on python-tz. + Drop depenceny on python-amqplib, it has been replaced by python-amqp/python-librabbitmq in python-kombu. + Drop dependency on python-anyjson, as it is required by python-kombu which already has it set as a versioned dependency. + Install celery.1 manpage. + Suggest python-celery-doc. * python-celery-doc + Adapt filenames in d/docs to new upstream names. + Update directories in doc-base. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Michael Fladischer Sun, 15 Dec 2013 20:58:41 +0100 celery (2.5.3-4ubuntu1) raring; urgency=low * Merge from Debian unstable. Remaining changes: - Drop issue tracker for doc generation as it adds a build-dep that it is not really necessary for this package to build. This allows us to MIR celery without MIR'ing the dependency. + debian/control: Drop build-dep on python-sphinxcontrib.issuetracker. + debian/patches/ubuntu-drop-issuetracker.patch: Drop import in doc generation. -- Logan Rosen Thu, 28 Mar 2013 15:38:24 -0400 celery (2.5.3-4) unstable; urgency=low * Unconditionally remove /var/log/celery on purge. -- Michael Fladischer Fri, 01 Mar 2013 12:17:32 +0100 celery (2.5.3-3) unstable; urgency=low * Remove logfiles during purge if user and group are removed. * Use /nonexistant as $HOME for user celery. -- Michael Fladischer Tue, 12 Feb 2013 08:57:59 +0100 celery (2.5.3-2) unstable; urgency=low * Create user celery in maintainer scripts (Closes: #697195). * Update year in d/copyright. -- Michael Fladischer Sun, 13 Jan 2013 19:10:12 +0100 celery (2.5.3-1ubuntu1) quantal; urgency=low * Drop issue tracker for doc generation as it adds a build-dep that it is not really necessary for this package to build. This allows us to MIR celery without MIR'ing the dependency. - debian/control: Drop build-dep on python-sphinxcontrib.issuetracker, - debian/patches/ubuntu-drop-issuetracker.patch: Drop import in doc generation. -- Andres Rodriguez Thu, 05 Jul 2012 12:36:33 -0400 celery (2.5.3-1) unstable; urgency=low * New upstream release. * Bump dependencies on kombu to (>= 2.1.5). * Update patches to remove nose-cover3. * Enable init scripts. * Update DEP-5 URL to 1.0. * Bump to standards version 3.9.3. -- Michael Fladischer Mon, 27 Feb 2012 14:58:29 +0100 celery (2.4.6-1) unstable; urgency=low * New upstream release. Fixes: CVE-2011-4356 * Update copyright to 2012. -- Michael Fladischer Mon, 02 Jan 2012 12:45:47 +0100 celery (2.4.5-1) unstable; urgency=low * Initial release (Closes: #526350) -- Michael Fladischer Tue, 27 Dec 2011 11:57:41 +0100 debian/manpage.celery.sgml0000644000000000000000000006305212255006114012746 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 12 July 2013"> 1"> FladischerMichael@fladi.at"> CELERY"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2013 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Worker Daemon &dhpackage; command DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a program that manages the Celery Worker Daemons and their queues. COMMANDS All inspect commands supports a --timeout argument, This is the number of seconds to wait for responses. You may have to increase this timeout if you’re not getting a response due to latency. shell Drop into a Python shell. The locals will include the celery variable, which is the current app. Also all known tasks will be automatically added to locals (unless the --without-tasks flag is set). Uses Ipython, bpython, or regular python in that order if installed. You can force an implementation using --force-ipython|-I, --force-bpython|-B, or --force-python|-P. status List active nodes in this cluster. result uuid Show the result of a task. Note that you can omit the name of the task as long as the task doesn’t use a custom result backend. purge Purge messages from all configured task queues. Warning: There is no undo for this operation, and messages will be permanently deleted! inspect active List active tasks. These are all the tasks that are currently being executed. inspect scheduled List scheduled ETA tasks. These are tasks reserved by the worker because they have the eta or countdown argument set. inspect reserved List reserved tasks. This will list all tasks that have been prefetched by the worker, and is currently waiting to be executed (does not include tasks with an eta). inspect revoked List history of revoked tasks. inspect registered List registered tasks. inspect stats Show worker statistics. control enable_events Enable events. control disable_events Disable events. migrate from to Migrate tasks from one broker to another (EXPERIMENTAL). This command will migrate all the tasks on one broker to another. As this command is new and experimental you should be sure to have a backup of the data before proceeding. The value for each broker should be a URL. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. App instance to use (e.g. module.attr_name). URL to the broker. Default is 'amqp://guest@localhost//'. name of custom loader class to use. Name of the configuration module. Optional directory to change to after detaching. Show program's version number and exit. Show help message and exit. SEE ALSO celeryd(1), celerybeat (1), celeryctl (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 12 July 2013"> 1"> FladischerMichael@fladi.at"> CELERY"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2013 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Worker Daemon &dhpackage; command DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a program that manages the Celery Worker Daemons and their queues. COMMANDS All inspect commands supports a --timeout argument, This is the number of seconds to wait for responses. You may have to increase this timeout if you’re not getting a response due to latency. shell Drop into a Python shell. The locals will include the celery variable, which is the current app. Also all known tasks will be automatically added to locals (unless the --without-tasks flag is set). Uses Ipython, bpython, or regular python in that order if installed. You can force an implementation using --force-ipython|-I, --force-bpython|-B, or --force-python|-P. status List active nodes in this cluster. result uuid Show the result of a task. Note that you can omit the name of the task as long as the task doesn’t use a custom result backend. purge Purge messages from all configured task queues. Warning: There is no undo for this operation, and messages will be permanently deleted! inspect active List active tasks. These are all the tasks that are currently being executed. inspect scheduled List scheduled ETA tasks. These are tasks reserved by the worker because they have the eta or countdown argument set. inspect reserved List reserved tasks. This will list all tasks that have been prefetched by the worker, and is currently waiting to be executed (does not include tasks with an eta). inspect revoked List history of revoked tasks. inspect registered List registered tasks. inspect stats Show worker statistics. control enable_events Enable events. control disable_events Disable events. migrate from to Migrate tasks from one broker to another (EXPERIMENTAL). This command will migrate all the tasks on one broker to another. As this command is new and experimental you should be sure to have a backup of the data before proceeding. The value for each broker should be a URL. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. App instance to use (e.g. module.attr_name). URL to the broker. Default is 'amqp://guest@localhost//'. name of custom loader class to use. Name of the configuration module. Optional directory to change to after detaching. Show program's version number and exit. Show help message and exit. SEE ALSO celeryd(1), celerybeat (1), celeryctl (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/celeryd.postrm0000644000000000000000000000112212255006114012053 0ustar #!/bin/sh set -e case "$1" in purge) rm -rf /var/log/celery if [ -x "$(command -v deluser)" ]; then deluser --quiet --system celery > /dev/null || true deluser --group --system --quiet --only-if-empty celery || true else echo >&2 "not removing celery system account, group and logfiles because deluser command was not found" fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac #DEBHELPER# exit 0 debian/NEWS0000644000000000000000000000075612255006114007671 0ustar celery (3.1.6-1) unstable; urgency=low The following initialization scripts are now provided by the celeryd binary package: * /etc/init.d/celeryd * /etc/init.d/celerybeat * /etc/init.d/celeryevcam If those scripts are used to run a celery installation, please install the celeryd package. If celery is started through other means like supervisord you will not need the celeryd package. -- Michael Fladischer Tue, 01 Oct 2013 08:17:37 +0200 debian/celeryd.postinst0000644000000000000000000000141612255006114012420 0ustar #!/bin/sh set -e case "$1" in configure|reconfigure) if ! getent passwd celery > /dev/null ; then echo 'Adding system user for Celery' 1>&2 adduser \ --system \ --quiet \ --home /nonexistant \ --no-create-home \ --group \ --gecos "Celery daemon" \ celery fi if ! dpkg-statoverride --list /var/log/celery >/dev/null; then chown celery:adm /var/log/celery chmod 750 /var/log/celery fi ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/python-celery.manpages0000644000000000000000000000012112255006114013473 0ustar celerybeat.1 celeryctl.1 celeryd.1 celeryd-multi.1 celeryev.1 camqadm.1 celery.1 debian/clean0000644000000000000000000000027112255006114010167 0ustar celerybeat.1 celeryctl.1 celeryd.1 celeryd-multi.1 celeryev.1 camqadm.1 celery.1 celery.egg-info/PKG-INFO celery.egg-info/SOURCES.txt celery.egg-info/requires.txt debian/celeryd.*.init debian/manpage.celeryd.sgml0000644000000000000000000001362712255006114013115 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 11 March 2010"> 1"> FladischerMichael@fladi.at"> CELERYD"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Worker Daemon &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a program that starts the Celery Worker Daemon. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. Number of child processes processing the queue. The default is the number of CPUs available on your system. Path to log file. If no logfile is specified, stderr is used. Logging level, choose between DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL. Set custom hostname. Also run the celerybeat periodic task scheduler. Please note that there must only be one instance of this service. Send events that can be captured by monitors like celerymon. Discard all waiting tasks before the daemon is started. WARNING: This is unrecoverable, and the tasks will be deleted from the messaging server. SEE ALSO celerybeat (1), celeryctl (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/python-celery.docs0000644000000000000000000000003512255006114012634 0ustar README.rst extra/supervisord debian/manpage.celeryd-multi.sgml0000644000000000000000000001124712255006114014241 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 11 March 2010"> 1"> FladischerMichael@fladi.at"> CAMQADM"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Tool for shell scripts to start multiple workers. &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a shell script generator which can be used to create arbitrary startup commands for celeryd worker processes. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. Show examples of usage. Generate start commands. Generate node-name-sequence. Show examples of usage. Show examples of usage. SEE ALSO celeryd (1), celerybeat (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/compat0000644000000000000000000000000212255006114010360 0ustar 7 debian/patches/0000755000000000000000000000000012263050623010614 5ustar debian/patches/drop_downgrade.patch0000644000000000000000000000313512255006114014632 0ustar Description: Remove upstream detection of installed celery Upstream tries to detect already installed versions of celery.app in order to remove the whole directory. This leads to ImportErrors during the tests. Author: Michael Fladischer Last-Update: 2013-09-03 Forwarded: no --- a/setup.py +++ b/setup.py @@ -22,38 +22,6 @@ if sys.version_info < (2, 6): raise Exception('Celery 3.1 requires Python 2.6 or higher.') -downgrade_packages = [ - 'celery.app.task', -] -orig_path = sys.path[:] -for path in (os.path.curdir, os.getcwd()): - if path in sys.path: - sys.path.remove(path) -try: - import imp - import shutil - for pkg in downgrade_packages: - try: - parent, module = pkg.rsplit('.', 1) - print('- Trying to upgrade %r in %r' % (module, parent)) - parent_mod = __import__(parent, None, None, [parent]) - _, mod_path, _ = imp.find_module(module, parent_mod.__path__) - if mod_path.endswith('/' + module): - print('- force upgrading previous installation') - print(' - removing {0!r} package...'.format(mod_path)) - try: - shutil.rmtree(os.path.abspath(mod_path)) - except Exception: - sys.stderr.write('Could not remove {0!r}: {1!r}\n'.format( - mod_path, sys.exc_info[1])) - except ImportError: - print('- upgrade %s: no old version found.' % module) -except: - pass -finally: - sys.path[:] = orig_path - - NAME = 'celery' entrypoints = {} extra = {} debian/patches/ubuntu-drop-issuetracker.patch0000644000000000000000000000060312263050403016616 0ustar Index: b/docs/conf.py =================================================================== --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,7 @@ 'sphinx.ext.viewcode', 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', - 'sphinxcontrib.issuetracker', +# 'sphinxcontrib.issuetracker', 'celerydocs'] debian/patches/disable_unstable_tests.patch0000644000000000000000000000202412255006114016352 0ustar Description: Disable time-sensitive test Upstream has admited that this single test (test_receieve_message_eta_isoformat) fails randomly. Disabling it by raising a SkipTest exception. Author: Michael Fladischer Forwarded: no Bug: https://github.com/celery/celery/issues/1450 --- a/celery/tests/worker/test_worker.py +++ b/celery/tests/worker/test_worker.py @@ -414,6 +414,7 @@ self.assertIs(self.buffer.get_nowait(), task) def test_receieve_message_eta_isoformat(self): + raise SkipTest('broken test, may fail at random') l = _MyKombuConsumer(self.buffer.put, timer=self.timer, app=self.app) l.blueprint.state = RUN l.steps.pop() @@ -514,6 +515,7 @@ self.assertTrue(logger.critical.call_count) def test_receive_message_eta(self): + raise SkipTest('broken test, may fail at random') l = _MyKombuConsumer(self.buffer.put, timer=self.timer, app=self.app) l.steps.pop() l.event_dispatcher = mock_event_dispatcher() debian/patches/lsb-init.patch0000644000000000000000000000643112255006114013357 0ustar Description: LSB compliant headers, status actions and ENABLED variable Upstream ships it's own init scripts but they lack some LSB header and the (optional) "status" action. This patch fixes this and also adds a variable called ENABLED in /etc/default/celeryd. Author: Michael Fladischer Last-Update: 2013-09-03 Forwarded: no --- a/extra/generic-init.d/celerybeat +++ b/extra/generic-init.d/celerybeat @@ -15,24 +15,28 @@ # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: celery periodic task scheduler +# Description: Starts the Celery periodic task scheduler. ### END INIT INFO # Cannot use set -e/bash -e since the kill -0 command will abort # abnormally in the absence of a valid process ID. #set -e +. /lib/lsb/init-functions + # Setting `SCRIPT_NAME` here allows you to symlink/source this init script, # making it easy to run multiple processes on the system. SCRIPT_NAME="$(basename $0)" # /etc/init.d/celerybeat: start and stop the celery periodic task scheduler daemon. -if test -f /etc/default/celeryd; then - . /etc/default/celeryd -fi - -if test -f /etc/default/${SCRIPT_NAME}; then - . /etc/default/${SCRIPT_NAME} +[ -r /etc/default/celeryd ] && . /etc/default/celeryd +[ -r /etc/default/celerybeat ] && . /etc/default/celerybeat +[ -r /etc/default/${SCRIPT_NAME} ] && . /etc/default/${SCRIPT_NAME} + +if [ "$ENABLED" != "true" ]; then + echo "celerybeat daemon disabled - see /etc/default/celeryd." + exit 0 fi CELERY_BIN=${CELERY_BIN:-"celery"} @@ -40,6 +44,7 @@ DEFAULT_LOG_FILE="/var/log/celery/${SCRIPT_NAME}.log" DEFAULT_LOG_LEVEL="INFO" DEFAULT_CELERYBEAT="$CELERY_BIN beat" +ENABLED="false" CELERYBEAT=${CELERYBEAT:-$DEFAULT_CELERYBEAT} CELERYBEAT_LOG_LEVEL=${CELERYBEAT_LOG_LEVEL:-${CELERYBEAT_LOGLEVEL:-$DEFAULT_LOG_LEVEL}} @@ -180,7 +185,16 @@ --pidfile="$CELERYBEAT_PID_FILE" } - +status () { + pid=$(cat "$CELERYBEAT_PID_FILE") + kill -0 $pid 1>/dev/null 2>&1 + if [ $? -eq 0 ]; then + echo "celerybeat running" + else + echo "celerybeat not running" + exit 1 + fi +} case "$1" in start) @@ -210,8 +224,11 @@ check_dev_null check_paths ;; + status) + status + ;; *) - echo "Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|create-paths}" + echo "Usage: /etc/init.d/${SCRIPT_NAME} {start|stop|restart|create-paths|status}" exit 64 # EX_USAGE ;; esac --- a/extra/generic-init.d/celeryd +++ b/extra/generic-init.d/celeryd @@ -35,6 +35,9 @@ # # Setting `SCRIPT_NAME` here allows you to symlink/source this init script, # making it easy to run multiple processes on the system. + +. /lib/lsb/init-functions + SCRIPT_NAME="$(basename $0)" DEFAULT_PID_FILE="/var/run/celery/${SCRIPT_NAME}/%n.pid" @@ -42,10 +45,16 @@ DEFAULT_LOG_LEVEL="INFO" DEFAULT_NODES="celery" DEFAULT_CELERYD="-m celery worker --detach" +ENABLED="false" CELERY_DEFAULTS=${CELERY_DEFAULTS:-"/etc/default/${SCRIPT_NAME}"} -test -f "$CELERY_DEFAULTS" && . "$CELERY_DEFAULTS" +[ -r "$CELERY_DEFAULTS" ] && . "$CELERY_DEFAULTS" + +if [ "$ENABLED" != "true" ]; then + echo "celery daemon disabled - see $CELERY_DEFAULTS" + exit 0 +fi # Sets --app argument for CELERY_BIN CELERY_APP_ARG="" debian/patches/fix_dependencies.patch0000644000000000000000000000121712255006114015127 0ustar Description: Remove pretty-printing nose-cover3 from build. nose-cover3 is not essential to the build-proccess and is not packaged for Debian. Thus removing it from the sources. Author: Michael Fladischer Last-Update: 2013-07-01 Forwared: not-needed --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,5 @@ [nosetests] where = celery/tests -cover3-branch = 1 -cover3-html = 1 -cover3-package = celery -cover3-exclude = celery.utils.debug,celery.tests.*,celery.bin.graph [build_sphinx] source-dir = docs/ --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,4 +1,3 @@ unittest2>=0.5.1 nose -nose-cover3 mock>=1.0.1 debian/patches/intersphinx.patch0000644000000000000000000000371312255006114014211 0ustar Description: use local objects.inv where possible Upstream uses intersphinx mappings that fetch the objects.inv for python, kombu and django-celery by HTTP from a remote host. Using the local objects.inv from python and kombu enables the package to build without network connection. Author: Michael Fladischer Forwarded: not-needed Last-Update: 2011-12-27 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,13 +74,23 @@ # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True -intersphinx_mapping = { - 'python': ('http://docs.python.org/dev', None), - 'kombu': ('http://kombu.readthedocs.org/en/latest/', None), - 'djcelery': ('http://django-celery.readthedocs.org/en/latest', None), - 'cyme': ('http://cyme.readthedocs.org/en/latest', None), - 'amqp': ('http://amqp.readthedocs.org/en/latest', None), -} +def check_object_path(key, url, path): + if os.path.isfile(path): + return {key: (url, path)} + return {} + +intersphinx_mapping = {} +intersphinx_mapping.update(check_object_path('python', + 'http://docs.python.org/', + '/usr/share/doc/python' + + '.'.join([str(x) for x in sys.version_info[0:2]]) + + '/html/objects.inv')) +intersphinx_mapping.update(check_object_path('kombu', + 'http://kombu.readthedocs.org/en/latest/', + '/usr/share/doc/python-kombu-doc/html/objects.inv')) +intersphinx_mapping.update(check_object_path('amqp', + 'http://amqp.readthedocs.org/en/latest/', + '/usr/share/doc/python-amqp-doc/html/objects.inv')) # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'colorful' debian/patches/series0000644000000000000000000000021112263050210012013 0ustar drop_downgrade.patch lsb-init.patch fix_dependencies.patch intersphinx.patch disable_unstable_tests.patch ubuntu-drop-issuetracker.patch debian/manpage.celerybeat.sgml0000644000000000000000000001125712255006114013602 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Michael"> Fladischer"> 11 March 2010"> 1"> FladischerMichael@fladi.at"> CELERYBEAT"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2010 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Celery Periodic Task Server &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a program that starts the Celery Periodic Task Server. OPTIONS This program follows the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. Path to the schedule database. Defaults to celerybeat-schedule. The extension ".db" will be appended to the filename. Path to log file. If no logfile is specified, stderr is used. Logging level, choose between DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL. SEE ALSO celeryd (1), celeryctl (1). AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/control0000644000000000000000000001124512263050324010571 0ustar Source: celery Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Michael Fladischer Build-Depends: debhelper (>= 8.1.0~), docbook-to-man, dvipng, locales, texlive-latex-base, texlive-latex-extra, python-all (>= 2.7), python-billiard (>= 3.3.0.13), python-cl, python-dateutil (>= 1.5), python-doc, python-gevent, python-kombu (>= 3.0.7), python-kombu-doc (>= 3.0.7), python-mailer, python-memcache, python-mock (>= 1.0.1), python-nose, python-openssl, python-pyparsing, python-pytyrant, python-redis, python-setuptools, python-sphinx (>= 1.0.7+dfsg), python-sqlalchemy, python-tz, python-unittest2 X-Python-Version: >= 2.7 Standards-Version: 3.9.5 Homepage: http://www.celeryproject.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/celery/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/celery/trunk/ Package: python-celery Architecture: all Depends: python-billiard (>= 3.3.0.13), python-cl, python-dateutil (>= 1.5), python-kombu (>= 3.0.7), python-mailer, python-memcache, python-pkg-resources, python-pyparsing, python-tz, ${misc:Depends}, ${python:Depends} Suggests: python-gevent, python-pytyrant, python-redis, python-sqlalchemy, python-celery-doc Description: async task/job queue based on message passing Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. . The execution units, called tasks, are executed concurrently on one or more worker nodes. Tasks can execute asynchronously (in the background) or synchronously (wait until ready). . Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using webhooks. . The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB, and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, using the python-django-celery package. Package: python-celery-doc Section: doc Architecture: all Depends: libjs-jquery, ${misc:Depends}, ${sphinxdoc:Depends} Description: async task/job queue based on message passing (Documentation) Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. . The execution units, called tasks, are executed concurrently on one or more worker nodes. Tasks can execute asynchronously (in the background) or synchronously (wait until ready). . Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using webhooks. . The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB, and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, using the python-django-celery package. . This package contains the documentation. Package: celeryd Architecture: all Depends: python-celery (= ${binary:Version}), ${misc:Depends}, adduser Breaks: python-celery (<< 3.0.24-1) Suggests: rabbitmq-server Description: async task/job queue based on message passing (daemons) Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. . The execution units, called tasks, are executed concurrently on one or more worker nodes. Tasks can execute asynchronously (in the background) or synchronously (wait until ready). . Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using webhooks. . The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB, and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, using the python-django-celery package. . This package contains the init scripts to start the celery daemons. debian/rules0000755000000000000000000000224712255006114010247 0ustar #!/usr/bin/make -f %: dh $@ --with python2,sphinxdoc .PHONY: override_dh_installman override_dh_installman: set -e ; \ for doc in celery camqadm celerybeat celeryd-multi celeryd celeryev celeryctl; do \ docbook-to-man debian/manpage.$$doc.sgml > $$doc.1; \ done dh_installman .PHONY: override_dh_auto_build override_dh_auto_build: PYTHONPATH=.:$$PYTHONPATH sphinx-build -b html -d .build/.doctrees -N docs .build/html dh_auto_build .PHONY: override_dh_auto_test override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e; \ for python in $(shell pyversions -r); do \ rm -f test.db ; \ PYTHONPATH=. LC_ALL=C.UTF-8 $$python setup.py test ; \ done endif #.PHONY: override_dh_compress #override_dh_compress: # dh_compress -X .js .PHONY: override_dh_clean override_dh_clean: rm -rf .build dh_clean .PHONY: override_dh_installinit override_dh_installinit: ln extra/generic-init.d/celerybeat debian/celeryd.celerybeat.init ln extra/generic-init.d/celeryd debian/celeryd.celeryd.init dh_installinit --name celerybeat dh_installinit --name celeryd .PHONY: override_dh_installchangelogs override_dh_installchangelogs: dh_installchangelogs Changelog debian/source/0000755000000000000000000000000012255006260010464 5ustar debian/source/format0000644000000000000000000000001412255006114011670 0ustar 3.0 (quilt) debian/celeryd.dirs0000644000000000000000000000001712255006114011472 0ustar var/log/celery debian/watch0000644000000000000000000000012412255006114010210 0ustar version=3 http://pypi.python.org/packages/source/c/celery/celery-([\d\.]+)\.tar\.gz debian/celeryd.celeryd.default0000644000000000000000000000201612255006114013604 0ustar # Edit the options in this file to match your projects environment. # See http://ask.github.com/celery/cookbook/daemonizing.html for the complete # documentation on the options. # WARNING: This script is only designed to run the worker(s) for a single # project. If you need to start workers for multiple projects you should # consider using supervisor. # Examples can be found in /usr/share/doc/python-celery/supervisord/ # Change this to true when done to enable the init.d script. # Default: false ENABLED="false" # Name of nodes to start # here we have a single node CELERYD_NODES="w1" # or we could have three nodes: #CELERYD_NODES="w1 w2 w3" # Where to chdir at start. CELERYD_CHDIR="/opt/Myproject/" # Extra arguments to celeryd CELERYD_OPTS="--time-limit=300 --concurrency=8" # Name of the celery config module. CELERY_CONFIG_MODULE="celeryconfig" # %n will be replaced with the nodename. CELERYD_LOG_FILE="/var/log/celery/%n.log" # Workers should run as an unprivileged user. CELERYD_USER="celery" CELERYD_GROUP="celery" debian/python-celery-doc.docs0000644000000000000000000000001412255006114013374 0ustar .build/html debian/python-celery.install0000644000000000000000000000000512255006114013347 0ustar usr/