Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.234.148 Times

celery 2.4.5

Company: Ask Solem
Date Added: October 08, 2013  |  Visits: 287

celery

Report Broken Link
Printer Friendly Version


Product Homepage
Download (37 downloads)



celery is a distributed task queue framework for Django.<br /><br />Installation<br /><br />You can install celery either via the Python Package Index (PyPI) or from source.<br /><br />To install using pip,:<br /><br />$ pip install celery<br /><br />To install using easy_install,:<br /><br />$ easy_install celery<br /><br />If you have downloaded a source tarball you can install it by doing the following,:<br /><br />$ python setup.py build<br /># python setup.py install # as root<br /><br />Usage<br /><br />Have to write a cool tutorial, but here is some simple usage info.<br /><br />Note You need to have a AMQP message broker running, like RabbitMQ, and you need to have the amqp server setup in your settings file, as described in the carrot distribution README.<br /><br />Note If you're running SQLite as the database backend, celeryd will only be able to process one message at a time, this because SQLite doesn't allow concurrent writes.<br /><br />Defining tasks<br /><br /> >>> from celery.task import tasks<br /> >>> from celery.log import setup_logger<br /> >>> def do_something(some_arg, **kwargs):<br /> ... logger = setup_logger(**kwargs)<br /> ... logger.info("Did something: %s" % some_arg)<br /> >>> task.register(do_something, "do_something")<br /><br />Note Task functions only supports keyword arguments.<br />Tell the celery daemon to run a task<br /><br /> >>> from celery.task import delay_task<br /> >>> delay_task("do_something", some_arg="foo bar baz")<br /><br />Running the celery daemon<br /><br />$ cd mydjangoproject<br />$ env DJANGO_SETTINGS_MODULE=settings celeryd<br />[....]<br />[2009-04-23 17:44:05,115: INFO/Process-1] Did something: foo bar baz<br />[2009-04-23 17:44:05,118: INFO/MainProcess] Waiting for queue.<br /><br />Autodiscovery of tasks<br /><br />celery has an autodiscovery feature like the Django Admin, that automatically loads any tasks.py module in the applications listed in settings.INSTALLED_APPS.<br /><br />A good place to add this command could be in your urls.py,<br /><br />from celery.task import tasks<br />tasks.autodiscover()<br /><br />Then you can add new tasks in your applications tasks.py module,<br /><br />from celery.task import tasks<br />from celery.log import setup_logger<br />from clickcounter.models import ClickCount<br /><br />def increment_click(for_url, **kwargs):<br /> logger = setup_logger(**kwargs)<br /> clicks_for_url, cr = ClickCount.objects.get_or_create(url=for_url)<br /> clicks_for_url.clicks = clicks_for_url.clicks + 1<br /> clicks_for_url.save()<br /> logger.info("Incremented click count for %s (not at %d)" % (<br /> for_url, clicks_for_url.clicks)<br />tasks.register(increment_click, "increment_click")<br /><br />Periodic Tasks<br /><br />Periodic tasks are tasks that are run every n seconds. They don't support extra arguments. Here's an example of a periodic task:<br /><br /> >>> from celery.task import tasks, PeriodicTask<br /> >>> from datetime import timedelta<br /> >>> class MyPeriodicTask(PeriodicTask):<br /> ... name = "foo.my-periodic-task"<br /> ... run_every = timedelta(seconds=30)<br /> ...<br /> ... def run(self, **kwargs):<br /> ... logger = self.get_logger(**kwargs)<br /> ... logger.info("Running periodic task!")<br /> ...<br /> >>> tasks.register(MyPeriodicTask)<br /><br />For periodic tasks to work you need to add celery to INSTALLED_APPS, and issue a syncdb.<br /><br />md5=0545f89033e1639bbb1be0974465577c

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Applications Command Increment Clickfor Url Listed Loads Module Place Settingsinstalled Apps Taskspy
Users rating: 0/10

License: Freeware Size: 870.4 KB
USER REVIEWS
More Reviews or Write Review


CELERY RELATED
Libraries  -  App::Context 0.964
App::Context is an application framework for web applications, command-line programs, server programs, and web services. This is the App-Context distribution. For more information, see the web pages at...
122.88 KB  
Utilities  -  FREE Command Line Tools 1.1
100% Freeware Networking Command Line Tools (URL response, TCP/IP Port response, REXEC, SSH, SQL Query, UnixInfo). All commands can run in unattended mode with password or key files supplied by parameters.
684 KB  
Audio Tools  -  MikMod Utilities 0.2
MikMod Utilities is collection of command line tools for manipulating the module sound files that are typically produced by Soundtracker, Protracker and other tools. MikMod Utilities contains the following tools: mmuinfo gives information...
51.2 KB  
Modules  -  Search Files 6.x-1.6 1.0
In order to extract the text from attached files, this module calls 'helper apps' such as cat and pdftotext. Drupal administrators can configure any helpers they like.The helper applications need to be configured so that they print output to...
 
Libraries  -  AFS::Command::BOS 1.7
AFS::Command::BOS is a OO API to the AFS bos command. SYNOPSIS use AFS::Command::BOS; my $bos = AFS::Command::BOS->new(); my $bos = AFS::Command::BOS->new ( command => $path_to_your_bos_binary, ); my $bos = AFS::Command::BOS->new (...
77.82 KB  
Libraries  -  Getopt::Clade 0.0.1
Getopt::Clade is a Perl module with command-Line Argument Declaration Engine. This module is a placeholder for the real Getopt::Clade module. The module was supposed to be released by July 2005, to support the book "Perl Best Practices"....
3.07 KB  
Security Tools  -  pam_usbauth 0.3
pam_usbauth is a module for PAM allowing end-users to locally authenticate via USB storage devices. USBAuth currently supports user-dependent authentication via password-hashing as well as one-time-password mechanisms, which make the verification...
10.24 KB  
Libraries  -  text-vimcolor 0.11
text-vimcolor is a command-line program to syntax color a file in HTML, XML or PDF. SYNOPSIS $ text-vimcolor --format html --full-page FILENAME > OUTPUT.html $ text-vimcolor --format xml FILENAME > OUTPUT.xml $ text-vimcolor --format pdf...
20.48 KB  
Development Tools  -  Classical_Mechanics_with_Matlab_a 1.0
Classical Mechanics with MATLAB Applications by Javier E. HasbundlTe Copyright 2008 Jones and Bartlett Publishers: http://www.jbpub.com/catalog/0763746363/See also the author's website: http://www.westga.edu/~jhasbun/osp/osp.htmOr send the author...
122.88 KB  
Programming  -  django-mediagenerator 1.11
Improve your user experience with amazingly fast page loads by combining, compressing, and versioning your javascript & CSS files and images. django-mediagenerator eliminates unnecessary HTTP requests and maximizes cache usage. Also, it provides...
51.2 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB