Skip to content

Commit

Permalink
Up to 0.11
Browse files Browse the repository at this point in the history
ttyS15 committed Jul 1, 2014
1 parent a8daa8c commit 3e1d403
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions celery_rpc/client.py
Original file line number Diff line number Diff line change
@@ -54,7 +54,6 @@ def prepare_task(self, task_name, args, kwargs, high_priority=False,
:param high_priority: ability to speedup consuming of the task
if server support prioritization, by default False
:param **options: optional parameter of apply_async
:param order_by: type list, tuple or string - add order_by to queryset, default = []
:return: celery.canvas.Signature instance
"""
@@ -77,7 +76,10 @@ def filter(self, model, kwargs=None, async=False, timeout=None, retries=1,
:param kwargs: optional parameters of request
filters - dict of terms compatible with django database query
offset - offset from which return a results
limit - max number results
limit - max number of results
fields - list of serializer fields, which will be returned
order_by - order of results (list, tuple or string),
minus ('-') set reverse order, default = []
:param **options: optional parameter of apply_async
:return: list of filtered objects or AsyncResult if async is True
:raise: see get_result()
3 changes: 2 additions & 1 deletion celery_rpc/tasks.py
Original file line number Diff line number Diff line change
@@ -114,7 +114,8 @@ def filter(self, model, filters=None, offset=0,
:param filters: filter supported by model manager like {'pk__in': [1,2,3]}
:param offset: offset of first item in the queryset (by default 0)
:param limit: max number of result list (by default 1000)
:param order_by: type list, tuple or string - add order_by to queryset, default = []
:param fields: shrink serialized fields of result
:param order_by: order of result list (list, tuple or string), default = []
:return: list of serialized model data
"""
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@

setup(
name='django-celery-rpc',
version='0.10',
version='0.11',
packages=find_packages(),
url='https://github.com/ttyS15/django-celery-rpc',
license='Public',

0 comments on commit 3e1d403

Please sign in to comment.