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

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

Serving Software Downloads in 976 Categories, Downloaded 29.657.466 Times

celery for Linux 0.8.4

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

celery for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 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
Utilities  -  Santa Fe Linux CTR3
Santa Fe Desktop Linux is an easy to use desktop operating system. It puts some of the worlds best open source applications within the reach of non-technical users. It even runs right off the CD so you can try it without installing. Santa Fe...
600 MB  
Installer/Uninstaller Tools  -  Install Kernel 0.9.3
Install Kernel interfaces with the Linux operating system by running a series of functions or groups of commands that automate the compiling or recompiling and installation process. Install Kernel project consists of three groups of functions:...
4.1 KB  
Desktop Utilities  -  Beryl on Debian GNU/Linux Testing 1.1.6
Beryl on Debian GNU/Linux Testing is a script which will install Beryl and possibly nVidia or ATI drivers on your Debian TESTING system. The script is only for users who have got a nvidia or ATI graphic card. 3 languages available: - French -...
 
Utilities  -  Puppy Linux 2.17.1
Puppy Linux is an evolutionary operating system, based on GNU Linux. Whats different here is that Puppy is extraordinarily small, yet quite full featured. Puppy Linux can boot into a 64MB ramdisk, and thats it, the whole caboodle runs in RAM....
93.2 MB  
Security Tools  -  KIptablesGenerator 1.3.1
This is a KDE-based wizard aimed at making the process of setting up a linux netfilter firewall easy, especially on distributions with no firewall tool of their own, such as slackware. It creates a shell script, suitable for caling from an init...
583.68 KB  
Utilities  -  Optimus OLED Keyboard Linux Driver 0.1.0
Optimus OLED Keyboard Linux Driver project is intended to provide a generic linux driver for OLED-based hardware made by Art. Lebedev Studio. The current goal is to support the Optimus Mini Three keyboard..
 
Utilities  -  Pentoo LiveCD 2005.1
Pentoo is a Linux LiveCD, it means that you can boot a linux environment on any x86 based PC. It is like KNOPPIX except that Pentoo is based on the Gentoo distribution and is oriented penetration testing. You can view the list of all available...
482 MB  
Programming  -  redisco 0.1.0
Redisco is a Python module that allows you to store objects in _Redis: http://code.google.com/p/redis/. It is inspired by Ruby library _Ohm: http://github.com/soveran/ohm/ and its design and code are loosely based on Ohm and the Django ORM. It is...
20.48 KB  
Networking Tools  -  Easy various links manager 0.10
Easy various links manager or Everest Linux Links Manager (evlinks) is a network manager and config toolkit that aims to replace network services and networkmanager. Tthe design of evlinks: 1. use mac address as config file names to avoid...
 
Utilities  -  SAM Linux Desktop 2007.1 Test 1
SAM Linux Desktop is a live and installation CD based on Mandriva Linux, is an easy-to-use, fast and clean XFce Linux desktop for home users. SAM Linux Desktop is enhanced by several popular non-free applications, such Macromedia Flash plugin,...
699 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB