 Django Q Documentation
Release 0.7.10from django_q.tasks import async_iter, result # set up a list of arguments for math.floor iter = [i for i in range(100)] # async iter them id=async_iter('math.floor',iter) # wait for the collated result from django_q.tasks import Iter i = Iter('math.copysign') # add some arguments i.append(1, -1) i.append(2, -1) i.append(3, -1) # run it i.run() # get the results print(i.result()) [-1.0, -2.0, -3.0] keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 67 页 | 518.39 KB | 1 年前3 Django Q Documentation
Release 0.7.10from django_q.tasks import async_iter, result # set up a list of arguments for math.floor iter = [i for i in range(100)] # async iter them id=async_iter('math.floor',iter) # wait for the collated result from django_q.tasks import Iter i = Iter('math.copysign') # add some arguments i.append(1, -1) i.append(2, -1) i.append(3, -1) # run it i.run() # get the results print(i.result()) [-1.0, -2.0, -3.0] keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 67 页 | 518.39 KB | 1 年前3
 Django Q Documentation
Release 0.7.14broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.40 KB | 1 年前3 Django Q Documentation
Release 0.7.14broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.40 KB | 1 年前3
 Django Q Documentation
Release 0.7.12broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.33 KB | 1 年前3 Django Q Documentation
Release 0.7.12broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.33 KB | 1 年前3
 Django Q Documentation
Release 0.7.18broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.84 KB | 1 年前3 Django Q Documentation
Release 0.7.18broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.84 KB | 1 年前3
 Django Q Documentation
Release 0.7.15broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 528.16 KB | 1 年前3 Django Q Documentation
Release 0.7.15broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 528.16 KB | 1 年前3
 Django Q Documentation
Release 0.7.16broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.76 KB | 1 年前3 Django Q Documentation
Release 0.7.16broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.76 KB | 1 年前3
 Django Q Documentation
Release 0.8.0broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 506.27 KB | 1 年前3 Django Q Documentation
Release 0.8.0broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 506.27 KB | 1 年前3
 Django Q Documentation
Release 0.7.17broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.85 KB | 1 年前3 Django Q Documentation
Release 0.7.17broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 516.85 KB | 1 年前3
 Django Q Documentation
Release 0.7.13broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.33 KB | 1 年前3 Django Q Documentation
Release 0.7.13broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait from django_q.tasks import async from django_q.brokers import get_broker broker = get_broker() for i in range(50): async('math.modf', 2.5, broker=broker) Tip If you are using django-redis [https://github keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf'0 码力 | 73 页 | 527.33 KB | 1 年前3
 Django Q Documentation
Release 0.7.9from django_q.tasks import async_iter, result # set up a list of arguments for math.floor iter = [i for i in range(100)] # async iter them id=async_iter('math.floor',iter) # wait for the collated result keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf' broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait0 码力 | 62 页 | 514.67 KB | 1 年前3 Django Q Documentation
Release 0.7.9from django_q.tasks import async_iter, result # set up a list of arguments for math.floor iter = [i for i in range(100)] # async iter them id=async_iter('math.floor',iter) # wait for the collated result keyword: # result group example from django_q.tasks import async, result_group for i in range(4): async('math.modf', i, group='modf') # wait until the group has 4 results result = result_group('modf' broker = get_broker() # async a hundred functions under a group label for i in range(100): async('math.frexp', i, group='frexp', cached=True, broker=broker) # wait0 码力 | 62 页 | 514.67 KB | 1 年前3
共 94 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10














 
 