[BUG] Nested @task invocations should not supported #3734
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the bug
The documentation defines tasks as the units of execution. This doesn't explicitly disallow nested tasks, in other words, it's reasonable to assume that some users will extrapolate the assertion to cover nested tasks as well (i.e. separate tasks running in separate environments/containers).
For example, in this code:
nested_task
runs in the same process astask
, as though it was a local execution of that task.Expected behavior
Users should receive some indication that nested tasks are not allowed. A log message should suffice.
Maybe worth calling out in the documentation as well.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: