-
Notifications
You must be signed in to change notification settings - Fork 9
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
Losing context after using run_task #6
Comments
Mmm, nice catch, could you try with |
Yes, I wrote in the first post that this happens even with version 0.2.0.h (the latest prerelease), if this is what you mean. The stack trace shown above was produced using 0.2.0.h. |
Pushed the new version which should solve the problem. Thanks for submitting this!
|
Now on my real use case it seems to pass twice in the loop that is calling the inner task and then it throws the exception attached. It seems not to be a problem of that particular one loop iteration (even when I mix up the data for the loop, it always crashes in the third iteration). Let me know if you want to see more stuff (task definitions etc.).
|
Simple failing "test case":
|
Hi Davide,
I attempted to run a task using run_task method inside another task. Both tasks use the
download
method to get data from remote server. After returning from the inner task back to the outer task,download
method is undefined in the outer task. Runningpwd
commands shows that the outer task is performed locally from that point on, not on the remote server. Tested on versions 0.1.4 and 0.2.0.h, same results for both. Here's a simple testing code to show the problem:After running test:outer, this is the output:
I cannot use simple task dependency in this case, in my real scenario I need to run the inner task in a loop, each time with different options, that's why I use run_task.
The text was updated successfully, but these errors were encountered: