Runs just before the app shuts down. This is useful for things like the cron or websocket service, which creates new work that might rely on other services still being operational.
In most cases you probably want to implement OnAppShutdown. Most relevant things like eg. The data source service are still operational there, as they implement the AfterAppShutdown interface.
Optional ReadonlyshutdownThe timeout for after which the graceful shutdown should fail.
Runs just before the app shuts down. This is useful for things like the cron or websocket service, which creates new work that might rely on other services still being operational.
In most cases you probably want to implement OnAppShutdown. Most relevant things like eg. The data source service are still operational there, as they implement the AfterAppShutdown interface.