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
However, I thought it would be nice to have this option in TaskOnKart, since there are cases where you don't want to keep a dump file. (e.g. Task is very simple and takes short time to run, but the dump data size is very large that it pressurize the storage cost.)
I think when implemented in TaskOnKart, going to be complicated to deal with intermediate dependent tasks.. 🤔
My idea is dump to tmpfile. This is probably too easy.
I think we only need to inject workspace_directory of final task.
As following
class TaskA(gokart.TaskOnKart):
def run(self):
print(self.output().path())
self.dump("")
class TaskB(TaskA):
def requires(self):
return TaskA()
with tempfile.TemporaryDirectory() as d:
print(d)
gokart.build(TaskB(workspace_directory=d), verbose=True)
I would like to see a function that can be used for tests where you don't want to leave a pkl.
now
feature image
However, whether this should be implemented in build is a matter of debate.
The text was updated successfully, but these errors were encountered: