-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix handling of non-dict configs #583
Conversation
@@ -110,9 +110,12 @@ def __call__(self, *args, **kwargs): | |||
self._runner.running_task_count += 1 | |||
self._start_time = time.monotonic() | |||
try: | |||
timeout_s = None | |||
# Config can be something else than a dictionary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would the config be something else? this seems a problem that should be handled in the caller site, and not here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example in the WaitTask
, the config is just an int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point is that it should be fixed there then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we want to support this:
- wait: 30
instead of
- wait: {time: 30}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propopose to fix that later: #584
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's merge that to get the tests run again and then work on #584
As seen in
AttributeError: 'int' object has no attribute 'get'