-
Notifications
You must be signed in to change notification settings - Fork 0
Remove BreezeLambdaService #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Andrea-Scuderi
commented
Oct 2, 2025
- Remove redundant BreezeLambdaService
Graceful shutdown logs:
|
return self.dbManager | ||
public func run() async throws { | ||
try await gracefulShutdown() | ||
try await onGracefulShutdown() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you shutting down immediately at run() ? Does it work ? Why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function try await gracefulShutdown()
waits until graceful shutdown is triggered as documented in ServiceLifecycle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great ! I have a few questions although :-)
do { | ||
try await serviceGroup.run() | ||
} catch { | ||
try dynamoDBService.syncShutdown() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the life cycle group must do that. You should not shutdown() or cancel() a service part of the group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it does unless there is a failure condition. Without this BreezeLambdaAPITests
will crash.
I'll check if there is a better way.