Skip to content

Conversation

@attila-papai
Copy link
Contributor

@attila-papai attila-papai commented Aug 17, 2023

Due to improvement in this PR we no longer need the extra 5 seconds of delay between creating and exporting a batch.

@attila-papai attila-papai changed the title [AL-0] add sleep after batch creation to fix flaky test [AL-0] add sleep after batch creation to fix flaky tests Aug 17, 2023
@attila-papai attila-papai changed the title [AL-0] add sleep after batch creation to fix flaky tests add sleep after batch creation to fix flaky tests Aug 17, 2023
batch = project.create_batch("batch test", data_rows)

# give some time for the data ingestion system to finish processing the batch creation
time.sleep(5)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to check if batch adding has been completed? I understand that it makes sense to call time.sleep(X) before create_batch_async(), but why would we need to call it for create_batch()? If there's something that changed about the internals, it should be handled within create_batch() implementation IMO, so that the experience is still sync

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for raising your concern here! It made me think if I could improve this in our backend systems instead and I managed to fix it in this PR

@attila-papai attila-papai changed the title add sleep after batch creation to fix flaky tests [WIP] add sleep after batch creation to fix flaky tests Aug 17, 2023
@attila-papai attila-papai changed the title [WIP] add sleep after batch creation to fix flaky tests Remove sleep between creating and exporting a batch Aug 18, 2023
@attila-papai attila-papai requested a review from mnoszczak August 18, 2023 07:30
@attila-papai attila-papai merged commit b439780 into develop Aug 18, 2023
@attila-papai attila-papai deleted the attila/add-sleep-batch branch August 18, 2023 15:37
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.

3 participants