Skip to content

Conversation

@FlandiaYingman
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 3, 2025 10:48
@FlandiaYingman FlandiaYingman linked an issue Dec 3, 2025 that may be closed by this pull request
@FlandiaYingman FlandiaYingman merged commit b084cc0 into main Dec 3, 2025
14 checks passed
@FlandiaYingman FlandiaYingman deleted the timeout branch December 3, 2025 10:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR increases the plugin timeout from the default value to 5 minutes (300,000 milliseconds) to accommodate slow service startups when multiple services are launched simultaneously, such as via docker compose up.

  • Added a hardcoded pluginTimeout configuration of 5 minutes to the Fastify options
  • Included explanatory comments describing the rationale for the increased timeout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +46 to +47
// This increases the timeout for plugins to 5 minutes.
pluginTimeout: 5 * 60 * 1000,
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

[nitpick] The plugin timeout is hardcoded to 5 minutes. Consider making this configurable via an environment variable (e.g., PLUGIN_TIMEOUT) to allow for flexibility across different deployment environments without requiring code changes. This follows the pattern already established in the codebase with other configuration options like AUTH_DISCOVERY_URL and AUTH_CLIENT_ID.

Example:

pluginTimeout: parseInt(getOption("PLUGIN_TIMEOUT", false) || "300000", 10),
Suggested change
// This increases the timeout for plugins to 5 minutes.
pluginTimeout: 5 * 60 * 1000,
// This increases the timeout for plugins to 5 minutes, or can be overridden with PLUGIN_TIMEOUT env var.
pluginTimeout: parseInt(getOption("PLUGIN_TIMEOUT", false) || "300000", 10),

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin Timeout

2 participants