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

#1920 - remove timeout logic for import and augment timeout #1928

Conversation

jcomedouteau
Copy link
Collaborator

  • 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") + '/';
Copy link
Collaborator

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.

Copy link
Collaborator Author

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;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why ?

Copy link
Collaborator Author

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

@jcomedouteau
Copy link
Collaborator Author

I'm closing this one, as this is integrated in Julien's PR.

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.

2 participants