-
Notifications
You must be signed in to change notification settings - Fork 294
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
Heartbeat doesn't work for short-running WorkerServices (<30 sec) - FlushAsync won't sent the heartbeat #2759
Comments
This issue is stale because it has been open 300 days with no activity. Remove stale label or this will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. |
Yes indeed, im still waiting for a response... |
A fix is here: #2762 |
@TimothyMothra could you please help me in getting a reaction/get the fix (#2762) merged? |
Why I don't get any response? Also not on my PR. Is there something wrong? |
Describe the bug
It seams that the heartbeat isn't working for applications that run shorter than 30 seconds, even when FlushAsync is called.
To Reproduce
finally
Sometimes it's too late.
The traces are sent really earlier (29 sec)
I tried lowering the HeartbeatInterval, but 30 seconds is the lowest possible value?
So the FlushAsync doesn't seem to send the heartbeat, that's the bug.
Is there a way to send the heartbeat manually?
Work around:
await Task.Delay(TimeSpan.FromSeconds(45));
- we don't really like this. The job needs 5 seconds, and now 50 (10 times!)Related: #1689, #407
The text was updated successfully, but these errors were encountered: