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

fix: Use --startup-timeout flag for controller timeout when in foreground #1981

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

gak
Copy link
Contributor

@gak gak commented Jul 5, 2024

Maybe #1942

  • Use --startup-timeout flag for controller timeout when in foreground
  • Log timing of controller

@gak gak requested a review from alecthomas as a code owner July 5, 2024 01:00
@gak gak requested review from a team and wesbillman and removed request for a team July 5, 2024 01:00
@ftl-robot ftl-robot mentioned this pull request Jul 5, 2024
@@ -142,9 +142,11 @@ func (s *serveCmd) run(ctx context.Context, projConfig projectconfig.Config, ini
}

// Wait for controller to start, then run startup commands.
if err := waitForControllerOnline(ctx, time.Second*10, client); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah yep, almost certainly the issue.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should make this a flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It totally relies on the computer speed and complexity of the project, so sure. Will do.

@gak gak merged commit c38eb92 into main Jul 5, 2024
45 checks passed
@gak gak deleted the gak/controller-timeout branch July 5, 2024 01:14
@gak gak changed the title fix: increase timeout for controller, log timings fix: Use --startup-timeout flag for controller timeout when in foreground Jul 5, 2024
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.

2 participants