Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beaker Executor opens a ton of files #486

Open
dirkgr opened this issue Dec 8, 2022 · 2 comments
Open

Beaker Executor opens a ton of files #486

dirkgr opened this issue Dec 8, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dirkgr
Copy link
Member

dirkgr commented Dec 8, 2022

馃悰 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 dirkgr added the bug Something isn't working label Dec 8, 2022
@dirkgr
Copy link
Member Author

dirkgr commented Dec 8, 2022

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
Copy link
Member Author

dirkgr commented Dec 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants