crowdin-cli
crowdin-cli copied to clipboard
Reduce the 'This file is currently being updated' error severity
The critical error appears when uploading source files to Crowdin when some of the uploaded files already exist in Crowdin and are currently being updated.
Example:
$ crowdin push
✔️ Fetching project info
✔️ File '1.xml'
✔️ File '2.xml'
❌ File '3.xml'
❌ Error from server: <Code: 409, Message: This file is currently being updated>
✔️ File '4.xml'
❌ Current execution finished with errors
$ ~
This fails the execution of the entire command - that is a bit redundant since it's expected that the file could be in the updating state. It will be better if we show the SKIPPED status for these files and a CLI command will finish successfully.
Expected output:
✔️ Fetching project info
✔️ File '1.xml'
✔️ File '2.xml'
⏭ File '3.xml' is currently being updated
✔️ File '4.xml'
$ ~
Additional info
To reproduce this case, it's better to have some big files where the update process could take, for example, a few seconds. Then, you need to initiate the file updating from the UI and simultaneously run the crowdin push command that also will try to update the same file (the file content should be different than previously uploaded).