Commit Graph

48 Commits

Author SHA1 Message Date
Ilan Steemers
fb8da040b4 Add warning about asyn_task refactor 2018-08-14 12:26:50 +02:00
Ilan Steemers
d1b29426c0 Fixes title underline 2018-08-01 15:53:06 +02:00
Ilan Steemers
acebdaa850 Renames async/enqueue to async_task. 2018-08-01 15:20:34 +02:00
Pierre-Elliott Bécue
ae75a84f7f Replaces async occurrences with alternatives
* async is now a reserved word in python3.7
 * Rename async function to enqueue
 * Rename all async_ functions to enqueue_
 * Rename Async class to AsyncTask
 * Updates the docs.
2018-07-07 21:33:43 +02:00
Balletie
03abbc960f Add option for acknowledging failed tasks (globally and per-task)
If a task fails with an exception, it is retried until it
succeeds. This is contrary to what is said in the documentation: under
the "Architecture" section, heading "Broker" it says that even when a
task errors, it's still considered a successful delivery. Failed tasks
never get acknowledged however, thereby being retried after the
timeout period. See also issues #238 and #194.

This patch adds an option to acknowledge failures, thereby closing
issue #238. Issue #194 would require some more work. The default of
this option is set to `False`, thereby maintaining backwards
compatibility.
2018-03-09 22:09:46 +01:00
Wirasto S. Karim
265a85629e Update tasks.rst 2017-03-06 22:56:15 +08:00
Ilan Steemers
0a8f2e7e72 Adds optional task_name argument
Makes it possible to name the task yourself.
2016-02-24 10:44:47 +01:00
Ronald van Zon
2989e3f71b fixed typo 2015-11-11 09:41:28 +01:00
Ilan Steemers
f5197ac912 docs: added Async class
Also moved Group, Iterable and Chain to their own pages because the Task page was getting too big.

v0.7.11
2015-10-28 12:06:18 +01:00
Ilan Steemers
37b41b15b1 docs: adds Iter and Chain examples 2015-10-19 11:32:22 +02:00
Ilan Steemers
37f1c4b42f docs: adds reference for Iter Chain and async_chain 2015-10-18 15:57:54 +02:00
Ilan Steemers
bd242b9de3 docs: minor tweaks to cached group example 2015-10-07 13:55:13 +02:00
Ilan Steemers
2ba88f2d17 adds cached option to async_iter 2015-10-06 19:37:02 +02:00
Ilan Steemers
efed61f786 docs: some tweaks on the new functions 2015-10-04 16:47:42 +02:00
Ilan Steemers
486a0021c7 docs: adds async_iter 2015-10-04 12:44:59 +02:00
Ilan Steemers
7911419642 docs: updated cache and group operations 2015-10-02 18:31:52 +02:00
Ilan Steemers
477761a17f :docs: replaced some old redis references with brokers 2015-09-30 10:12:16 +02:00
Ilan Steemers
1fd9ca2441 docs: mongodb broker 2015-09-25 20:57:47 +02:00
Ilan Steemers
cef48da789 removes root imports for django 1.9
Updated docs to promote submodule imports
2015-09-24 15:41:32 +02:00
Ilan Steemers
370ffd4061 docs: Replaced redis pooling with broker pooling example.
* moves get_broker to main module
2015-09-18 21:07:18 +02:00
Ilan Steemers
43d90da271 docs: typo 2015-09-18 11:03:41 +02:00
Ilan Steemers
a493f9cc78 Adds wait option to result() and fetch() 2015-09-18 10:57:09 +02:00
Ilan Steemers
f7d30561a2 docs: group functions for task instances
updated group example to reflect easier syntax.
2015-09-16 17:01:23 +02:00
Ilan
ad110f8b45 docs: minor updates 2015-08-15 17:03:56 +02:00
Ilan
265ae9abd9 docs: added sync configuration reference 2015-08-13 18:13:45 +02:00
Ilan
3d12c1d36e adds queue_size()
returns the size of the current redis queue
2015-08-13 15:54:57 +02:00
Ilan
0d1f106470 docs: adds 'save' option to function references 2015-07-21 14:23:57 +02:00
Ilan
41970ef2fe docs: some formatting updates and minor fixes 2015-07-21 10:50:10 +02:00
Ilan
a25ac7da57 docs: added info about the save override keyword
docs: added explanation of the `q_options` dict
2015-07-20 21:02:57 +02:00
Ilan
7a57253345 Added a group example 2015-07-19 15:55:58 +02:00
Ilan
52e72fde1c Adds failed tasks filtering to groups 2015-07-19 15:15:57 +02:00
Ilan
58a671fb45 docs: added a fetch_group example 2015-07-18 20:50:16 +02:00
Ilan
e4737d765a Schedule name is optional
For backwards compatibility the schedule name is an optional keyword in the `schedule` function.

Adjusted docs accordingly
2015-07-18 19:41:21 +02:00
Ilan
e1d483e1c1 docs: describes the new group options 2015-07-18 18:50:14 +02:00
Ilan
40ac0bfce5 Minor updates to timeout docs 2015-07-16 21:01:27 +02:00
Ilan
af735c328e Adds a timeout override per task
* added a `timeout` keyword to tasks.
* timeouts now count down instead of up
* `timeout` in task overrides global timeout setting
* added tests for timeout override
* added a test for recycling
2015-07-16 20:35:29 +02:00
Ilan
8e07203d18 Adding sphinx builds to Travis
* added default module django_q
* set build mode to nit-picky
* warnings raise errors

Want to make sure the docs are neat and build on Travis , to make it easier to accept doc pull requests
2015-07-13 15:30:12 +02:00
Ilan Steemers
46c439f909 Some added info on the sync option 2015-07-09 20:47:20 +02:00
Ilan Steemers
e62fd1ee70 Fixes #7
* added a synchronous cluster simulation

* added a test for the sync function

* moved signing into its own module

* refactored imports to solve circular import problems stemming from the task module pretending to be a cluster

* added documentation for the new sync option
2015-07-09 20:16:21 +02:00
Ilan Steemers
b2098d3f0a Updated docs for new version 2015-07-08 15:09:19 +02:00
Ilan Steemers
f8708cfd73 Task now uses a UUID4 instead of a LUID 2015-07-08 13:33:03 +02:00
Ilan Steemers
ef7806edc3 adds support for django-redis connections 2015-07-06 14:10:14 +02:00
Ilan Steemers
1942bd2f39 Added connection economy example 2015-07-05 21:09:20 +02:00
Ilan Steemers
05fa062549 Almost ready for 0.2.0 2015-07-04 12:16:51 +02:00
Ilan Steemers
7008784b76 getting docs ready for 0.2.0 2015-07-04 11:40:26 +02:00
Ilan Steemers
8f6c672734 Getting docs ready fro 0.2.0 2015-07-03 21:59:24 +02:00
Ilan Steemers
28887decab Getting docs ready fro 0.2.0 2015-07-03 19:57:45 +02:00
Ilan Steemers
b378d18098 Writing sphinx docs 2015-07-03 14:42:30 +02:00