-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only change the asset state after virus scan completes, if the asset …
…is unscanned In production it looks like there are concurrency issues and the VirusScannerWorker executes several times for the same file. When several processes attempt to change the asset state at the same time, it can causes other issues. Specifically any attempt to read or remove the local file after the state transition can fail.
- Loading branch information
Tuomas Nylund
committed
Dec 1, 2023
1 parent
0462ac7
commit a8f1a45
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters