Skip to content
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

BC-7207 - preview generator pod is crashlooping due to OOM #5133

Merged
merged 5 commits into from
Jul 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/server/src/infra/rabbitmq/rpc-message-producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ export abstract class RpcMessageProducer {
}

protected createRequest(event: string, payload: unknown) {
// expiration should be greater than timeout
const expiration = this.timeout > 0 ? this.timeout / 0.5 + this.timeout : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.timeout / 0.5 + this.timeout ist das selbe wie 3 * this.timeout. Das wäre doch wesentlich einfacher zu lesen.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dyedwiper we were just testing you


return {
exchange: this.exchange,
routingKey: event,
payload,
timeout: this.timeout,
expiration,
};
}
}
Loading