-
Notifications
You must be signed in to change notification settings - Fork 22
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
#1920 - remove timeout logic for import and augment timeout #1928
#1920 - remove timeout logic for import and augment timeout #1928
Conversation
jcomedouteau
commented
Oct 25, 2023
- set timeout to 5mn
- Apply timeout only for download
@@ -157,6 +159,8 @@ export class MassDownloadService { | |||
} else { | |||
directoryHandlePromise = this.getFolderHandle(); | |||
} | |||
let path :string = "Datasets-" + formatDate(new Date(), "yyyyMMddHHmmss", "en-US") + '/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would break the retry functionality imo.
I'm working on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I did not think of this. Maybe you were right, this upper folder is not the greatest idea
@@ -42,7 +42,7 @@ export class NotificationsService { | |||
readonly readInterval: number = 1000; | |||
readonly persistenceTime: number = 1800000; | |||
private freshTimeouts: SuperTimeout[] = []; | |||
private readonly TIMEOUT: number = 30000; | |||
private readonly TIMEOUT: number = 300000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had problem with the timeout, sometimes it takes more than 30sc to be updated.
The other problem was that this was applied for others jobs, taht weren't download, and import always finished as "timeout" before the end of he import
I'm closing this one, as this is integrated in Julien's PR. |