-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify Task class constructor to also take "parallel" and "serial" argument #1215
Closed
Kami
wants to merge
3,366
commits into
fabric:master
from
Kami:allow_user_to_pass_serial_and_parallel_argument_to_task_class_constructor
Closed
Modify Task class constructor to also take "parallel" and "serial" argument #1215
Kami
wants to merge
3,366
commits into
fabric:master
from
Kami:allow_user_to_pass_serial_and_parallel_argument_to_task_class_constructor
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conflicts: docs/changelog.rst
Conflicts: docs/changelog.rst
Conflicts: fabric/version.py
This makes adds the 'command' attribute to local()'s return, as in run() and sudo() to make the initial command accessible after execution.
Conflicts: sites/www/changelog.rst
constructor. Also update the constructor signature so it doesn't simply quietly swallows other args and kwargs you pass in.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, if you want to control a value of a
serial
andparallel
attribute on theTask
object, you need to manually set it on the instance instead of passing it to the constructor.This branch allows you to pass those two arguments to the
Task
class constructor. For backward compatibility reasons, they default to the same value as the values read in therequires_parallel
method.On top of that, I also removed
*args, **kwargs
from the method signature. Previously, the constructor would quietly swallow and ignore other unsupported args and kwargs you pass in (this makes for a bad API and developer experience).