Open seth127 opened 1 month ago
I've done some testing here and havent been able to reproduce yet. I wanted to add though that the bootstrap specification file gets created after the models are made and the datasets are saved out:
Additionally, the submit_model
call will fail if the spec file hasnt been made yet. If this ever happens again, I would kill the process and zip up the current state of the bootstrap model for closer inspection, because Im struggling to see where this issue could be introduced. I haven't ruled out gc()
being a contributor, though I dont see how it would mess up the state of things either.
Thanks for looking into this. I'll let you know if I ever see this behavior again. Good idea about zipping up the model directory for later inspection.
We need to look into this further, but I've noticed some strange behavior, when I run code this back-to-back in the console:
In most cases, this works fine, as expected. However, sometimes when I run the
submit_model()
call _whilesetup_bootstrap_run()
is still executing_ I have this problem where the batch submission seems to choke.I've seen the
OUTPUT
file be empty, and I've also seen something like the following be written into it:In all of these cases, none of the models actually get submitted.
I'm assuming there is some race condition happening here. It may also be an issue with
setup_bootstrap_run()
exiting before it's actually done with it's work, though I don't quite understand how that could happen.I'll also note that I've never seen this happen when I wait for each line to finish before running the next line. Anecdotal evidence, at best, but may be worth considering