You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the "basename" option of a task that has been created via doit.create_after, this task is never executed.
Minimal example to reproduce
Here is a minimal dodo.py file to reproduce the error. You can see from the output to sys.stderr that this is not merely a case of not reporting the task's run, but it actually doesn't run at all.
Note that removing either the "basename" option or the create_after decorator produces the "correct" behaviour; it is only when used together that they cause trouble.
I forgot to write a note on docs about this... Since the metadata of a delayed task is only created on demand it is currently not possible to set a basename. doit needs to know which task-creator function needs to be execute the get the metadata of the requested task.
What I thought before was to extend the decorator to accept a creates argument, something like
Description
If I set the
"basename"
option of a task that has been created viadoit.create_after
, this task is never executed.Minimal example to reproduce
Here is a minimal
dodo.py
file to reproduce the error. You can see from the output tosys.stderr
that this is not merely a case of not reporting the task's run, but it actually doesn't run at all.Note that removing either the
"basename"
option or thecreate_after
decorator produces the "correct" behaviour; it is only when used together that they cause trouble.dodo.py:
Expected behaviour
Terminal log:
Actual behaviour
Terminal log:
System information
The text was updated successfully, but these errors were encountered: