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

add batch_id for Batch #2252

Draft
wants to merge 2 commits into
base: pre/2.8
Choose a base branch
from
Draft

add batch_id for Batch #2252

wants to merge 2 commits into from

Conversation

QingengWei
Copy link
Contributor

No description provided.

@yaugenst-flex yaugenst-flex self-requested a review February 17, 2025 12:48
Comment on lines +487 to +492
batch_id: str = pd.Field(
f"bat-{uuid.uuid4()}",
title="BatchId",
description="The batchId to run as a batch.",
)

Copy link
Collaborator

@yaugenst-flex yaugenst-flex Feb 17, 2025

Choose a reason for hiding this comment

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

This implementation will currently lead to the same default batch id for every batch in the same python session, i.e. if you submit multiple batches, they will all have the same batch id.

Also more generally I'm not a big fan of using uuid's here because they won't be reproducible across multiple sessions. The batch id's should be unique and deterministic, e.g. based on the hashes of the simulations that are contained in the batch.

@tylerflex tylerflex removed their request for review February 17, 2025 23:07
@momchil-flex momchil-flex marked this pull request as draft February 25, 2025 09:03
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.

2 participants