Is it appropriate to re-use a task across multiple...
# ask-community
h
Is it appropriate to re-use a task across multiple different flows, similar to how you would import a python function? I am trying to organize my code base by DRYing it out, and I find myself reusing the same code defining tasks to instantiate and return a google sheets API client. Would I be able to define a task in a file, that is then imported in multiple other files to be used across multiple flows? Or does it not work like that
k
Hey @Harry Baker, yes this sounds good. That’s how the Task Library works!
h
ty!