[pdm-devel] applied: [PATCH datacenter-manager] ui: avoid running tasks and remotes list loads when logged out
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Nov 19 21:39:38 CET 2025
On Fri, 14 Nov 2025 14:13:05 +0100, Shannon Sterz wrote:
> the logic in the DatacenterManagerApp uses `Timeout`s that call
> `send_future` to continuously poll the remotes list and running tasks.
> the problem there is that given certain conditions these loads can
> happen over and over again, even if the user is logged out. this leads
> to 401 status codes being returned over and over again.
>
> the result is a race condition that can appear when a user logs in and
> one of those load requests is still in-flight. the user will log in
> showing the logged in ui. then one of those requests returns with a
> 401, which triggers an instant log out again. this is made more likely
> to happen by the fact that our api has a 3 second delay on requests
> that return a 401. this increases the likelihood of a load request
> still being in-flight while a login is happening.
>
> [...]
Applied, thanks!
[1/1] ui: avoid running tasks and remotes list loads when logged out
commit: 6a14f4571b0a8cf67949a13391671bba7c91c95b
More information about the pdm-devel
mailing list