Skip to content

Commit

Permalink
fix: preparation_mode (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
takb authored Feb 7, 2025
2 parents c66f0c0 + 4c553fa commit 6cf11db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RELEASING:
### Removed

### Fixed
- preparation_mode flag ([#1966](https://github.com/GIScience/openrouteservice/pull/1966))

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void contextInitialized(ServletContextEvent contextEvent) {
}
if (Boolean.TRUE.equals(engineProperties.getPreparationMode())) {
LOGGER.info("Running in preparation mode, all enabled graphs are built, job is done.");
RoutingProfileManagerStatus.setShutdown(true);
System.exit(RoutingProfileManagerStatus.hasFailed() ? 1 : 0);
}
} catch (Exception e) {
LOGGER.warn("Unable to initialize ORS due to an unexpected exception: " + e);
Expand Down

0 comments on commit 6cf11db

Please sign in to comment.