This commit is contained in:
2021-10-28 18:53:27 +00:00
parent 3d01fea58d
commit 5f2b33f434
2 changed files with 10 additions and 6 deletions

View File

@@ -13,12 +13,6 @@
todo: timeout for reporting should be used for all areas where a timeout is specified for puppeteer sharp so that everything is in agreement
or, maybe what is required is to set them unusually high to allow for mega reports adn let the zombie reaper handle based on user settings!!!
because we don't want a 30 second limit in puppeteer to kill a report when they set it to be 2 minutes timeout because they know they have a huge report to print from time to time
todo: add code for client reporting to handle a busy response
perhaps it retries after the delay a fixed number of times then reports back a fail / retry later to the user
joyce suggested a folksy message regarding server busy, something friendly and non techy sounding

View File

@@ -106,6 +106,16 @@ export default {
reportDataOptions
);
this.rendering = false;
if (res.data && res.data.busy) {
window.$gz.eventBus.$emit(
"notify-warning",
"Dammit captain, I'm giving it all she's got, try again later"
);
this.resolve(null);
this.isVisible = false;
return;
}
if (res.error) {
this.reject(res);
} else {