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

Debug DANDI upload argument defaults #923

Merged
merged 2 commits into from
Aug 31, 2024
Merged

Debug DANDI upload argument defaults #923

merged 2 commits into from
Aug 31, 2024

Conversation

CodyCBakerPhD
Copy link
Collaborator

fix #922

Not sure when or how this changed

I tried it out with v1.0.0 of the GUIDE and this issue did not exist at that time

But in latest release, the values being sent back from the frontend were null (even if they visually displayed as the default values of 1), causing number_of_jobs to set to None from the top level of all Python argument passing, which for parallelization usually means 'use all jobs'

So I was able to replicate the issue locally and then tested that this fix resolves the issue on a local build

@rly and I discussed having a pre-release TODO checklist (including RTD switcher bumps) - this would be a good thing to add to that list

@CodyCBakerPhD CodyCBakerPhD self-assigned this Aug 31, 2024
@@ -1277,7 +1277,9 @@ def upload_multiple_filesystem_objects_to_dandi(**kwargs) -> list[Path]:
del innerKwargs["filesystem_paths"]
innerKwargs["nwb_folder_path"] = tmp_folder_path
results = upload_folder_to_dandi(**innerKwargs)
rmtree(tmp_folder_path)

rmtree(tmp_folder_path, ignore_errors=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also fixed this, which can happen if you enable 'cleanup' option but cleanup succeeds in earlier stage (earlier stage is known to fail stochastically on certain platforms, which is why we try it again here)

@CodyCBakerPhD CodyCBakerPhD merged commit 423a2c8 into main Aug 31, 2024
27 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the debug_dandi branch August 31, 2024 04:13
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.

Error uploading data
2 participants