-
Notifications
You must be signed in to change notification settings - Fork 357
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
fix: wait until file resource content is available #15686
fix: wait until file resource content is available #15686
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## tracker_importer_scheduler #15686 +/- ##
=============================================================
Coverage 66.20% 66.21%
- Complexity 31272 31282 +10
=============================================================
Files 3483 3483
Lines 129897 129911 +14
Branches 15179 15182 +3
=============================================================
+ Hits 86002 86024 +22
+ Misses 36810 36807 -3
+ Partials 7085 7080 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -33,6 +33,5 @@ | |||
public enum FileResourceStorageStatus { | |||
NONE, // No content stored | |||
PENDING, // In transit to store, not available | |||
FAILED, // Storing the resource failed |
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.
FYI: This was never used anywhere so it seemed just confusing to have
* "chore: Make async tracker importer use scheduler" This reverts commit bc2befc. * fix: wait until file resource content is available (#15686) * fix: wait until file resource content is available * fix: detect null content for file resources * fix: wait for file content to become available --------- Co-authored-by: Jan Bernitt <[email protected]>
FileResource
content is stored asynchronously which makes it difficult to work with immediately after calling "save".Therefore a sleep-waiting was added.