insitro / redun

Yet another redundant workflow engine
https://insitro.github.io/redun/
Apache License 2.0
510 stars 43 forks source link

Suggestion: Provide a suitable, default `namespace` for each task #90

Open Andrew-S-Rosen opened 8 months ago

Andrew-S-Rosen commented 8 months ago

I see the warning that in the future, the redun_namespace variable will need to be set on the module-level and/or the namespace provided in the @task. Personally, I would like to make an alternate suggestion: make the default namespace for each task be task.func.__module__. The combination of the __module__ in the namespace and the __name__ in the name will yield a unique identifier in virtually all practical cases.