Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐞 Eliminate spurious UnknownError from CC workers
- Previously, the old records cleanup generates UnknownErrors when there are no records & it has been directed to preserve the most recent. Although these UnknownErrors are harmless, they pollute logs, and can cause consternation. - These UnknownErrors are not visible to the user via API calls; they appear only in the worker logs. - We now check to make sure that there is at least one record before attempting to preserve it. fixes: ```json { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001, "test_mode_info": { "description": "undefined method `id' for nil:NilClass", "error_code": "CF-id" } } ``` [finishes #172773653] Co-authored-by: Reid Mitchell <[email protected]> Co-authored-by: Brian Cunnie <[email protected]>
- Loading branch information