Tasks 1.0.3
§Scheduling asynchronous tasks. You can schedule sending messages to actors and executing tasks (functions or Runnable instances). You will get a Cancellable back that you can call cancel on to cancel the execution of the scheduled operation. For example, to send a. Answer Key Page # Kinematics Ranking Tasks 1 Ball Motion Diagrams—Velocity I ADF BE C 2 Ball Motion Diagrams—Acceleration I ADF BE C 3. Properties of Matter Ranking Tasks 1 0 3 Springs and Masses—Period of Oscillating Mass H D EF C B AG 104. 8 Postupgrade Tasks After Upgrading to Enterprise Manager Cloud Control 13c Release 1. On the Post Upgrade Tasks page. On the Job Library page, select the job name UPGRADE EXALOGIC SYSTEMS TO FUSION MIDDLEWARE 12.1.0.3.0 MODEL, and click Submit. Mar 27, 2017 Tasks 1.0.3 - Manage all your daily tasks. Download the latest versions of the best Mac apps at safe and trusted MacUpdate. The Diagnostic Classification Revision Task Force and ZERO TO THREE previewed the updates and revisions since DC:0-3R at the World Association for Infant Mental Health (WAIMH) Congress in May 2016 and released the new edition, DC:0-5™, in December 2016 at ZERO TO THREE’s Annual Conference.
Latest versionReleased:
A simple and fast task queue for executing multiple tasks in parallel.
Project description
__tasks.py__ is a simple and fast task queue for executing multiple tasks in parallel. All you need to do is specify the task as a simple function that takes an argument and you get instant parallelism.
Based on eventlet, multiprocessing and redis.
It is ideal for executing multiple network bound tasks in parallel from a single node, without going through the pain of setting up a map reduce cluster. It uses both processes and green threads to extract the maximum out of a single node setup.
Installation
-----------
1. Install redis and start the server, **tasks** uses redis for queueing jobs. If you already have a redis server setup, call `tasks.set_redis` and pass a redis connection object with a different database/namespace from what you normally use in your application.
2. Install the redis-py and eventlet libraries.
`pip install redis eventlet`
3. Install tasks or copy this package to your source code.
`pip install tasks-py`
Usage
-----
Import `tasks` and call eventlet's monkey patch function in the first line of your module. Call `tasks.set_func` to register your function. This function will be receiving a string as an argument and its return value will be ignored. To indicate failure of the task, raise an error or exception within the function. Call `tasks.main()` to get the interactive command line options.
import eventlet
eventlet.monkey_patch()
import tasks
from urllib2 import urlopen
def fetch(url):
f = open('/tmp/download', 'w')
body = urlopen(url).read()
f.write(body)
f.close()
tasks.set_func(fetch)
tasks.main()
Now to add jobs, create a file with one argument per line and use this command.
`$ python yourfile.py add <list_of_jobs.txt>`
To start (or restart) the job processing (do this in a **screen** session or close the input stream):
`$ python yourfile.py run`
**tasks** has resume support, so it will start where you left off the last time.
To view the current status while it is running:
`$ python yourfile.py status`
Once you are done, you can clear the logs and the completed tasks by calling reset.
`$ python yourfile.py reset`
See the code or the test.py file for more information. Feel free to fork and modify this.
----
**Author** : Vivek Narayanan <<vivek@vivekn.com>>
**License** : BSD
(C) Vivek Narayanan (2014)
Release historyRelease notifications
1.0.3
1.0.2
Quick 'n easy web builder 3.1.4. Including support for 2D and 3D transforms!
1.0.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size tasks-py-1.0.3.macosx-10.10-intel.tar.gz (4.8 kB) | File type Dumb Binary | Python version any | Upload date | Hashes |
Filename, size tasks-py-1.0.3.tar.gz (3.5 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for tasks-py-1.0.3.macosx-10.10-intel.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | c9c2d68c1be8933fa0e7fbe7c329c4c5dbd5b36038beca7f3f8180eb58eee6bf |
MD5 | 9f4481283f7d07ad447fc3c79632d1e8 |
BLAKE2-256 | 4abfc7b87d36fdaab6fd28111d80a626b4d2baf09e214cac6892634e451f2be5 |
Hashes for tasks-py-1.0.3.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | c2c162c7e20afcaddb0bb24012d4b58182f1ebfa36f3bc2e4d1f02484dc22784 |
MD5 | 765ddeab387b1ab5624f9685808726c6 |
BLAKE2-256 | f31b43e081533932f54d09e2c1e1b7efb3b04d658bf28654d8132b276f4482d0 |
Tasks that can monitor windows services (System.ServiceProcess)
Release Notes
Tasks 1.0.3 1
This code is open source and can be found at https://github.com/michael-lang/candor-common.
In depth articles can be found at http://candordeveloper.com/
Changes:
1.0.3: Update package dependency references, updated documentation.
1.0.2: Update package dependency references
1.0.1: Update package dependency references
Dependencies
- Candor.Core(>= 1.2.1)
- Common.Logging(>= 2.2.0)
GitHub Usage
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.3 | 1,803 | 7/24/2014 |
1.0.2 | 622 | 5/7/2014 |
1.0.1 | 566 | 10/19/2013 |
1.0.0 | 572 | 8/20/2013 |
0.10.11.30726 | 556 | 8/16/2013 |
0.7.0.30405 | 613 | 4/5/2013 |
0.6.1.30221 | 597 | 2/21/2013 |
0.6.0.30129 | 558 | 1/30/2013 |
0.5.0.21231 | 562 | 12/31/2012 |