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

no online fetch on backup #293

Merged
merged 3 commits into from
Feb 18, 2022
Merged

no online fetch on backup #293

merged 3 commits into from
Feb 18, 2022

Conversation

AriaMoradi
Copy link
Member

@AriaMoradi AriaMoradi commented Feb 18, 2022

proposed solution for #195
might close #195

@AriaMoradi AriaMoradi requested a review from Syer10 February 18, 2022 23:16
@Syer10
Copy link
Collaborator

Syer10 commented Feb 18, 2022

I would be fine with this solution, but why not extract the db transaction and make it a seperate function? That way we could also remove the runBlocking in the backup code

@AriaMoradi
Copy link
Member Author

image

This would work too, the issue is that the backup http call might timeout before all online fetches finish?

@Syer10
Copy link
Collaborator

Syer10 commented Feb 18, 2022

I beleive we want to avoid all network requests when creating a backup, it should be done as fast as it can

@Syer10
Copy link
Collaborator

Syer10 commented Feb 18, 2022

Also that would swallow any errors that we may actually want to see in the endpoints

@AriaMoradi
Copy link
Member Author

direct transaction is better I guess.

@AriaMoradi
Copy link
Member Author

ready

@AriaMoradi AriaMoradi merged commit 9a9752a into master Feb 18, 2022
@AriaMoradi AriaMoradi deleted the offline-chapter branch February 18, 2022 23:27
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.

[Bug] Extension: "Webtoons" fails to load and backup creation fails
2 participants