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.448.339 Times

celery for Linux 0.8.4

Company: Ask Solem
Date Added: November 15, 2013  |  Visits: 420

celery for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 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=953a0cacf3b5d8de94348d3ed958122e

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Applications Celery Celery Linux Celerylog Celerytask Easy Install Gtgtgt Import Install Kwargs Linux Logger Message Periodic Python Running Setup Loggerkwargs Setuppy Sqlite Tasks
Users rating: 0/10

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


CELERY FOR LINUX RELATED
Programming  -  Distribute for linux 0.6.13
Distribute is a friendly fork of the setuptools utility. The Setuptools maintainer, Phillip J. Eby is not responsible of any aspect of this fork. If you install Distribute and want to switch back for any reason to Setuptools, get to the...
296.96 KB  
Libraries  -  ZZEE DHTML Menu 2.1.0
ZZEE DHTML Menu is a library for Javascript and PHP that you can use to create familiar dropdown menus like in desktop applications. ZZEE DHTML Menu is fairly easy to install and embed into your existing HTML or PHP pages. Benefits: Similar...
62.1 KB  
Utilities  -  SLAX KillBill Edition 5.1.8.1
SLAX KB is a pocket operating system with the ability to run many Windows applications natively in Linux. It contains wine, dosbox and qemu. Some people prefer modified versions of SLAX, designed to provide some extra functionality. Even if SLAX...
204 MB  
MP3 Players  -  Windows 8 Codec Pack 2.0.1
The Windows 8 Codec Pack is an easy way to install all main stream codecs to play movie and music files downloaded from the internet or ripped from original discs. Installation is made simple with an easy install option and the most functional...
21.12 MB  
Database Tools  -  Bond Script 2.4.3
Bond is a rapid application development framework for building applications for the linux desktop and the web. Using bond you can quickly build database forms for Gnome Linux, or the web via standard HTML and AJAX or for windows using win32...
4.44 MB  
Web Searching Tools  -  Software Search Bar 1.01
Find software on the DownloadTip.com Software search engine directly from your toolbar.Fast download and easy install (400KB)Easy SearchKey term highlightingPage zoom and zoom out. Easy Uninstall, no spy ware!
400 KB  
Programming  -  LabHome 0.1
Easy install web server for Genetic and Molecular Biological Laboratory so that PI can update lab homepage himself. Also serve as Lab database server that store DNAStrider plasmid , order tracking and mouse colony database.
127.83 MB  
Security Tools  -  PHP Web Toolkit 1.0.3.alpha
The PHP Web Toolkit enables the rapid development of multi-layered web applications and is designed to be easy to use, extensible, reliable, reusable, scalable and secure. It integrates with ADOdb, FCKeditor, kses, Libmcrypt, Libmhash and Smarty.
890.37 KB  
Development Editors  -  Tiny Pic Bootloader for Linux 0.6.6
Tinybldlin is a GNU/Linux port written in python for Tiny PIC Bootloader (tinybldWin.exe) for Microchip PIC microcontrollers.
122.88 KB  
Utilities  -  xinco - Document Management System, DMS 3
xinco [eXtensibe INformation COre] is a powerful Web-Service based Information and Document Management System (DMS) for files, text, URLs and contacts, featuring ACLs, versioning, full text search, an FTP-like client (easy install,...
55.14 MB  
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