tango icon indicating copy to clipboard operation
tango copied to clipboard

Beaker Executor opens a ton of files

Open dirkgr opened this issue 3 years ago • 2 comments

🐛 Describe the bug

You have to do this in a catwalk context, on commit e7c5d158b9e8f1c925b4894037b5371a1efdeab7.

from tango import StepGraph
sg = StepGraph.from_file("experiments/everything/everything.jsonnet")
from tango import Workspace
ws = Workspace.from_url("beaker://ai2/task-complexity")
s = sg['trained_model_sciq_bert-base-uncased_1337']
r = ws.step_result(s)

At this point the Beaker Workspace will open millions of files, quickly exhausting the open file limit. Even when you Ctrl+C the proceedings, background threads keep trying to open files. Your console is now useless.

Versions

asdasdasd

dirkgr avatar Dec 08 '22 06:12 dirkgr

I do this on a Mac. I think Linux has a higher default open file limit, so it takes a lot more to hit the same problem.

dirkgr avatar Dec 08 '22 10:12 dirkgr

I realize (now) that step_result() is not the correct method to call. But the behavior is quite pathological.

dirkgr avatar Dec 08 '22 10:12 dirkgr