Update BackgroundJobsExecutor.cpp

This commit is contained in:
alexey-milovidov 2021-08-11 06:08:30 +03:00 committed by GitHub
parent 91d7f3daa7
commit a0a5c0da32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,9 @@ try
catch (...) /// Exception while we looking for a task, reschedule catch (...) /// Exception while we looking for a task, reschedule
{ {
tryLogCurrentException(__PRETTY_FUNCTION__); tryLogCurrentException(__PRETTY_FUNCTION__);
/// Why do we scheduleTask again?
/// To retry on exception, since it may be some temporary exception.
scheduleTask(/* with_backoff = */ true); scheduleTask(/* with_backoff = */ true);
} }