Django Q Documentation
Release 0.4.6want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) django-redis , you can configure Django Q to use its connection pool. 1.2.5 Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 36 页 | 249.57 KB | 1 年前3
Django Q Documentation
Release 0.5.3want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) django-redis , you can configure Django Q to use its connection pool. 1.3.5 Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 38 页 | 358.27 KB | 1 年前3
Django Q Documentation
Release 0.5.3to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) com/niwinz/django-redis] , you can configure Django Q to use its connection pool. Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 46 页 | 474.97 KB | 1 年前3
Django Q Documentation
Release 0.4.6to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) com/niwinz/django-redis] , you can configure Django Q to use its connection pool. Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 42 页 | 203.66 KB | 1 年前3
Django Q Documentation
Release 0.6.4want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) django-redis , you can configure Django Q to use its connection pool. 1.4.5 Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 42 页 | 376.79 KB | 1 年前3
Django Q Documentation
Release 0.6.4to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) com/niwinz/django-redis] , you can configure Django Q to use its connection pool. Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, redis=None, q_options=None, **kwargs) Puts0 码力 | 53 页 | 512.86 KB | 1 年前3
Django Q Documentation
Release 0.7.13it task_result = result(task_id, 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() the following optional keyword arguments: 1.4. Tasks 15 Django Q Documentation, Release 0.7.13 hook The function to call after the task has been executed. This function gets passed the complete Task This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts)0 码力 | 56 页 | 416.37 KB | 1 年前3
Django Q Documentation
Release 0.7.11want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) broker, you can configure Django Q to use its connection pool. 1.4.6 Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, cached=False, bro- ker=None, q_options=None0 码力 | 54 页 | 412.45 KB | 1 年前3
Django Q Documentation
Release 0.7.12it task_result = result(task_id, 200) # but in most cases you will want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() the following optional keyword arguments: 1.4. Tasks 15 Django Q Documentation, Release 0.7.12 hook The function to call after the task has been executed. This function gets passed the complete Task This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts)0 码力 | 56 页 | 415.46 KB | 1 年前3
Django Q Documentation
Release 0.7.9want to use a hook: async('math.modf', 2.5, hook='hooks.print_result') # hooks.py def print_result(task): print(task.result) async() can take the following optional keyword arguments: hook The function This enables you to use these keywords for your function call: # Async options in a dict opts = {'hook': 'hooks.print_result', 'group': 'math', 'timeout': 30} async('math.modf', 2.5, q_options=opts) broker, you can configure Django Q to use its connection pool. 1.4.7 Reference async(func, *args, hook=None, group=None, timeout=None, save=None, sync=False, cached=False, bro- ker=None, q_options=None0 码力 | 50 页 | 397.77 KB | 1 年前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













