Skip to content

Conversation

@kzscisoft
Copy link
Collaborator

@kzscisoft kzscisoft commented Sep 15, 2025

Batch Run Creation

Issue: #853

Python Version(s) Tested: 3.13

Operating System(s): Ubuntu 25.04

Documentation PR: N/A

πŸ“ Summary

Adds ability to create runs in bulk via the low level API.

πŸ”„ Changes

_runs = [
    RunBatchArgs(name=f"run_{i}")
    for i in range(10)
]
Run.batch_create(entries=_runs)

The method batch_create for Run can take arguments for folder, metadata and visibility which override any values (if present) in the RunBatchArgs instance.

βœ”οΈ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.
  • Updated the documentation.

@kzscisoft kzscisoft linked an issue Sep 15, 2025 that may be closed by this pull request
@kzscisoft kzscisoft requested a review from wk9874 September 15, 2025 14:53
@kzscisoft kzscisoft added in review This issue is resolved in a Pull Request which is being reviewed ready for testing This issue has been fixed and is ready for testing python Pull requests that update python code labels Sep 15, 2025
@kzscisoft kzscisoft added this to the Python API v2.2 milestone Sep 15, 2025
@kzscisoft kzscisoft requested a review from wk9874 September 16, 2025 08:04
Copy link
Collaborator

@wk9874 wk9874 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kzscisoft kzscisoft merged commit 576a018 into dev Sep 16, 2025
20 checks passed
@kzscisoft kzscisoft deleted the 853-enable-bulk-run-creation branch September 16, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in review This issue is resolved in a Pull Request which is being reviewed python Pull requests that update python code ready for testing This issue has been fixed and is ready for testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable bulk run creation

3 participants