You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Build: skip duplicated commands
Sometimes it happens the web servers are congested and the builder retries the
API call to save the command in the database. However, one of the first attempts
finally ended up working resulting in the command being saved twice.
This small chunk of code checks for the existence of the command before saving
it into the database and logs a warning and return 204 if it already exists,
instead of re-saving it again.
It's not a perfect solution, but it could help under similar circumstances.
Related #10567
* Test case for duplicated BuildCommandResult
* Add `start_date` to the filter
* Typo
* Update readthedocs/api/v2/views/model_views.py
Co-authored-by: Santos Gallegos <[email protected]>
---------
Co-authored-by: Santos Gallegos <[email protected]>
0 commit comments