mark offline when 401 unauthorized
This commit is contained in:
parent
13bd410bdc
commit
721f3d0b0f
|
@ -50,7 +50,11 @@ export async function processJobs(): Promise<never> {
|
|||
}
|
||||
if (
|
||||
err instanceof SdApiError &&
|
||||
(err.statusCode === 0 /* Network error */ || err.statusCode === 404)
|
||||
(
|
||||
err.statusCode === 0 /* Network error */ ||
|
||||
err.statusCode === 404 ||
|
||||
err.statusCode === 401
|
||||
)
|
||||
) {
|
||||
runningWorkers.delete(worker.name);
|
||||
logger().warning(
|
||||
|
|
Loading…
Reference in New Issue