Skip to content

Change background endspattern to stop at "Application Started" #1428

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

Closed
wants to merge 1 commit into from

Conversation

JustinGrote
Copy link

This change will background the task when azure functions is ready to accept connections. This will save a few seconds between the task starting and the debug being available and speed up the developer feedback loop.

This change will background the task when azure functions is ready to accept connections. This will save a few seconds between the task starting and the debug being available and speed up the developer feedback loop.
@JustinGrote JustinGrote requested a review from a team as a code owner August 6, 2019 20:50
@PrashanthCorp
Copy link

Hey @JustinGrote , thanks for the PR, we appreciate it! Do you have a before-after gif, or something specific we can repro against to track the effect of this change over time?

@@ -721,7 +721,7 @@
"background": {
"activeOnStart": true,
"beginsPattern": "^.*(Job host stopped|signaling restart).*$",
"endsPattern": "^.*Host lock lease acquired by instance ID.*$"
"endsPattern": "^Application started.+$"
Copy link
Contributor

Choose a reason for hiding this comment

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

@JustinGrote not sure if you remember, but we already discussed this here.

This may work for some languages, but not all. Specifically Python would fail unless we waited for the lock lease message. See #660

I've asked the functions team to give us a debug-specific message that will work in all languages. See Azure/azure-functions-host#4384

Copy link
Author

Choose a reason for hiding this comment

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

The message changed so I thought this got resolved but apparently not. My bad :) guess this is stuck on that request.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to dig deeper and find out exactly when/why/how the message changed that would be great, but yeah at the moment I'm just waiting on that issue

@JustinGrote JustinGrote closed this Aug 6, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants