Skip to content

Commit

Permalink
chore: add error messages on scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
chris910512 committed Jan 24, 2024
1 parent 91c2b7e commit e1530ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ public void loadEntireData() throws IOException {
log.info("Job loadEntireData skipped by this instance");
}
} catch (InterruptedException e) {
log.error("Job loadEntireData error" + e.getMessage());
lock.unlock();
Thread.currentThread().interrupt();
} finally {
log.info("Job loadEntireData reached finally");
lock.unlock();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ public void loadEntireData() throws IOException {
log.info("Job loadEntireData skipped by this instance");
}
} catch (InterruptedException e) {
log.error("Job loadEntireData error" + e.getMessage());
lock.unlock();
Thread.currentThread().interrupt();
} finally {
log.info("Job loadEntireData reached finally");
lock.unlock();
}

Expand Down

0 comments on commit e1530ae

Please sign in to comment.