class Call: (source)
Represents a call/execution of a `.Task` with given (kw)args. Similar to `~functools.partial` with some added functionality (such as the delegation to the inner task, and optional tracking of the name it's being called by.) .. versionadded:: 1.0
Method | __deepcopy__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __getattr__ |
Undocumented |
Method | __init__ |
Create a new `.Call` object. |
Method | __repr__ |
Undocumented |
Method | clone |
Return a standalone copy of this Call. |
Method | clone |
Return keyword args suitable for cloning this call into another. |
Method | make |
Generate a `.Context` appropriate for this call, with given config. |
Instance Variable | args |
Undocumented |
Instance Variable | called |
Undocumented |
Instance Variable | kwargs |
Undocumented |
Instance Variable | task |
Undocumented |
Create a new `.Call` object. :param task: The `.Task` object to be executed. :param str called_as: The name the task is being called as, e.g. if it was called by an alias or other rebinding. Defaults to ``None``, aka, the task was referred to by its default name. :param tuple args: Positional arguments to call with, if any. Default: ``None``. :param dict kwargs: Keyword arguments to call with, if any. Default: ``None``.
Return a standalone copy of this Call. Useful when parameterizing task executions. :param into: A subclass to generate instead of the current class. Optional. :param dict with_: A dict of additional keyword arguments to use when creating the new clone; typically used when cloning ``into`` a subclass that has extra args on top of the base class. Optional. .. note:: This dict is used to ``.update()`` the original object's data (the return value from its `clone_data`), so in the event of a conflict, values in ``with_`` will win out. .. versionadded:: 1.0 .. versionchanged:: 1.1 Added the ``with_`` kwarg.