Issue with BackgroundWorkDialog not refreshing or closing

Hello,

In my application, I am using BackgroundWorkDialog to block the screen for the user while a long-running task is being executed. However, I am encountering an intermittent issue where the dialog does not refresh as expected. Specifically, the percentage indicator does not update while the task is running, and the dialog does not close automatically when the task is completed. Instead, the user must refresh the page manually for the dialog to close or show the updated state.

This issue does not occur consistently; it happens sporadically, even when using the same parameters for the task.

When I check the server logs, no errors or warnings are reported. However, when I inspect the browser logs after refreshing the page during the issue, I see the following messages:

[Debug] Mon Jan 20 2025 16:47:25 GMT+0100 (heure normale d’Europe centrale) Atmosphere: unload event (vaadinPush.js, line 1)
[Error] XMLHttpRequest cannot load {url}/vaadinServlet/PUSH?v-uiId=1&v-pushId=9b717d16-9fd6-44c1-97e3-80a12036b39f&X-Atmosphere-Transport=close&X-Atmosphere-tracking-id=cbd04642-4292-48a2-85e9-36442c4b4a8a&_=1737388045767.
	M (vaadinPush.js:1:25617)
	an (vaadinPush.js:1:31627)
	E (vaadinPush.js:1:4095)
	I (vaadinPush.js:1:4408)
	(fonction anonyme) (vaadinPush.js:1:36374)
	(fonction anonyme) (vaadinPush.js:1:37111)
	(fonction anonyme) (vaadinPush.js:1:43479)
[Log] Vaadin push loaded (vaadinPush.js, line 1)

Does anyone have an idea of what might be causing this issue or how I can resolve it?

Thank you for your help.