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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator-based task submission with backpressure #3580

Open
benclifford opened this issue Aug 12, 2024 · 0 comments
Open

generator-based task submission with backpressure #3580

benclifford opened this issue Aug 12, 2024 · 0 comments

Comments

@benclifford
Copy link
Collaborator

benclifford commented Aug 12, 2024

@WardLT made a loop to stop his code from submitting too many (100,000,000) tasks in one go to Parsl, because that uses too much memory. His code intermingles application specific app launching with load management.

There's some librification that could happen here: for example, user supplies a generator (for example a generator comprehension, or a for loop using yield) which provides a long series of tasks; some Parsl library function pulls tasks off that generator to keep Parsl loaded, but not too loaded (for example, by default 10x number of tasks in queues as workers are available).

@WardLT code for reference: https://github.com/HydrogenStorage/molecular-stability-computer/blob/main/compute_emin.py#L147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant