Skip to content

Add automatic batching in ds.add_entries() and ds.submit()#775

Merged
bennybp merged 5 commits into
mainfrom
entry_improv
Oct 18, 2023
Merged

Add automatic batching in ds.add_entries() and ds.submit()#775
bennybp merged 5 commits into
mainfrom
entry_improv

Conversation

@bennybp

@bennybp bennybp commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

Description

Trying to add a large number of entries can cause a timeout on the server. This adds automatic batching (with progress bars) so that this doesn't happen.

Also adds similar functionality to submit().

In the future, submit() (and maybe add_entries()) should move to an asynchronous operation, where an internal job is created, which can be viewed/polled with some future-like object.

See openmm/spice-dataset#82 for some motivation, although that's not the only one.

Changelog description

Add automatic batching in ds.add_entries() and ds.submit()

Status

  • Code base linted
  • Ready to go

@bennybp bennybp merged commit 0e2f3ef into main Oct 18, 2023
@bennybp bennybp deleted the entry_improv branch October 18, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant