Celery 2.0 Documentationthe first instance that returns a value for the given method. The list can also contain promises (promise.) celery.utils.fun_takes_kwargs(fun, kwlist=[]) With a function, and a list of keyword arguments missing attributes instead of raising AttributeError. celery.utils.maybe_promise(value) Evaluates if the value is a promise. celery.utils.mitemgetter(*items) Like operator.itemgetter() but returns *args, **kwargs) Memoized promise. The function is only evaluated once, every subsequent access will return the same value. evaluated Set to to True after the promise has been evaluated. evaluate()0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.0 Documentationthe first instance that returns a value for the given method. The list can also contain promises (promise.) celery.utils.fun_takes_kwargs(fun, kwlist=[]) With a function, and a list of keyword arguments missing attributes instead of raising AttributeError. celery.utils.maybe_promise(value) Evaluates if the value is a promise. celery.utils.mitemgetter(*items) Like operator.itemgetter() but returns *args, **kwargs) Memoized promise. The function is only evaluated once, every subsequent access will return the same value. evaluated Set to to True after the promise has been evaluated. evaluate()0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery v5.0.1 Documentationcom/project/ask/py-amqp amqp [https://pypi.python.org/pypi/amqp/] https://amqp.readthedocs.io vine Promise/deferred implementation. git: CI: Windows-CI: PyPI: docs: git: CI: Windows-CI: PyPI: git: CI: configuration from dict d. If the argument is a callable function then it will be regarded as a promise, and it won’t be loaded until the configuration is actually needed. This method can be compared Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() # <-- evaluate: returns lazy result. >>> promise.get() # <-- will wait for the task to return [4, 8] *tasks (List[Signature])0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationcom/project/ask/py-amqp amqp [https://pypi.python.org/pypi/amqp/] https://amqp.readthedocs.io vine Promise/deferred implementation. git: CI: Windows-CI: PyPI: docs: git: CI: Windows-CI: PyPI: git: CI: configuration from dict d. If the argument is a callable function then it will be regarded as a promise, and it won’t be loaded until the configuration is actually needed. This method can be compared Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() # <-- evaluate: returns lazy result. >>> promise.get() # <-- will wait for the task to return [4, 8] *tasks (List[Signature])0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.5 Documentationcom/project/ask/py-amqp amqp [https://pypi.python.org/pypi/amqp/] https://amqp.readthedocs.io vine Promise/deferred implementation. git: CI: Windows-CI: PyPI: docs: git: CI: Windows-CI: PyPI: git: CI: configuration from dict d. If the argument is a callable function then it will be regarded as a promise, and it won’t be loaded until the configuration is actually needed. This method can be compared Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() # <-- evaluate: returns lazy result. >>> promise.get() # <-- will wait for the task to return [4, 8] *tasks (List[Signature])0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationcom/project/ask/py-amqp amqp [https://pypi.python.org/pypi/amqp/] https://amqp.readthedocs.io vine Promise/deferred implementation. git: CI: Windows-CI: PyPI: docs: git: CI: Windows-CI: PyPI: git: CI: configuration from dict d. If the argument is a callable function then it will be regarded as a promise, and it won’t be loaded until the configuration is actually needed. This method can be compared Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() # <-- evaluate: returns lazy result. >>> promise.get() # <-- will wait for the task to return [4, 8] *tasks (List[Signature])0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery 2.1 Documentationthe first instance that returns a value for the given method. The list can also contain promises (promise.) celery.utils.fun_takes_kwargs(fun, kwlist=[]) With a function, and a list of keyword arguments maybe_iso8601(dt) Either datetime | str -> datetime or None -> None celery.utils.maybe_promise(value) Evaluates if the value is a promise. celery.utils.mitemgetter(*items) Like operator.itemgetter() but returns *args, **kwargs) Memoized promise. The function is only evaluated once, every subsequent access will return the same value. evaluated Set to to True after the promise has been evaluated. evaluate()0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 3.0 Documentationhttps://ci.appveyor.com/project/ask/py-amqp PyPI: amqp docs: https://amqp.readthedocs.io vine Promise/deferred implementation. git: https://github.com/celery/vine/ CI: http://travis-ci.org/#!/celery/vine/ org/dev/library/decimal.html#decimal.Decimal] Converted to json text. django.utils.functional.Promise Django only: Lazy strings used for translation etc., are evaluated and conversion to a json type better. AsyncResult.then(on_success, on_error) The AsyncResult API has been extended to support the promise protocol. This currently only works with the RPC (amqp) and Redis result backends, but lets you0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationhttps://ci.appveyor.com/project/ask/py-amqp PyPI: amqp docs: https://amqp.readthedocs.io vine Promise/deferred implementation. git: https://github.com/celery/vine/ CI: http://travis-ci.org/#!/celery/vine/ org/dev/library/decimal.html#decimal.Decimal] Converted to json text. django.utils.functional.Promise Django only: Lazy strings used for translation etc., are evaluated and conversion to a json type better. AsyncResult.then(on_success, on_error) The AsyncResult API has been extended to support the promise protocol. This currently only works with the RPC (amqp) and Redis result backends, but lets you0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 2.2 Documentationthe first instance that returns a value for the given method. The list can also contain promises (promise.) celery.utils.fun_takes_kwargs(fun, kwlist=[]) With a function, and a list of keyword arguments raising AttributeError. celery.utils.maybe_promise(value) Evaluates if the value is a promise. class celery.utils.mpromise(fun, *args, **kwargs) Memoized promise. The function is only evaluated once, every every subsequent access will return the same value. evaluated Set to to True after the promise has been evaluated. evaluate() evaluated = False celery.utils.noop(*args, **kwargs) No operation. Takes0 码力 | 505 页 | 878.66 KB | 1 年前3
共 49 条
- 1
- 2
- 3
- 4
- 5













