-
Notifications
You must be signed in to change notification settings - Fork 4
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
Step: load page: When a certain error appears, keep trying to reload the page until the full timeout is up. #367
Comments
About the server restarting on a pull: Pull requests only sometimes cause server restarts - when they contain modules in them. Sometimes tl;dr
Note: There may be a way to tell when pulling a package doesn't work.
LongerThe conversation about it that was in Slack: Question:
Answer:
Q:
A:
Q:
A:
|
needs to give a chance for the module to reload. Also, added another check to the setup pull as per instructions. See issue comment for details. That should supposedly help this not happen, but I did add a line in the report if it still happens and we'll hopefully be able to see if that's not working and then report on it. Hope these are enough to fix this problem finally, but I don't know of a way to test this.
Close #367, fix erroring too soon on no module error which
Not sure quite how to do this yet. Details:
More tests are failing more often now with a particular system error. It's quick and the error is something like
ModuleNotFoundError: No module named 'docassemble.playground123testingsomebranchname'
.When working on loading the page, I had asked in docassemble about a da system page error that occurred when things were still reloading. I think I said something about the server reloading. The conversation seemed to indicate it would just cause a timeout. That info prompted the current code that ends quickly when detecting a system error.
With this new error message in hand, we're able to see that there might indeed be a system error when a project (module?) is not finished reloading:
That means we need to change how this is working, but still retain the ability to have useful error messages.
Something like: If this particular error message comes up, if the timeout isn't up, keep trying to reload.
One thing that would help with this is: change the test run so that things fail when the setup fails [#55]. That way, we'll know if the code didn't get there at all or whether it's just not done reloading.
[Edit: That alone won't be enough to tell what kind of situation we're running into. The
test.yml
could load and then the error could turn up and it may not mean the package still needs to load and just needs extra time. It may be because the code was never able to get pulled. Just saying that failing on setup won't solve the main problem.test.yml
just lets us know that the server itself is working.]The text was updated successfully, but these errors were encountered: