I have a task like this:
@task(pre=[test_teardown, test_bootstrap], post=[test_teardown])
def test_do(c):
pass
test_teardown
post-task will not run because of task deduplication, but I want it to run before and after the test_do
task.
I have tried using a Collection
and overriding its default configuration as described here:
test = Collection(
"test",
bootstrap=test_bootstrap,
teardown=test_teardown,
do=test_do,
)
test.configure({"tasks": {"dedupe": False}})
namespace = Collection(test)
But test_teardown
still gets deduplicated.
How can I disable deduplication for this particular task, so that I don't have to specify --no-dedupe
on the command line and still have deduplication for other tasks?