PERF: Frontend polls 4 endpoints every 1 second regardless of deployment state #43
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#43
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEDIUM
File:
static/js/app.js— appDetail component, init()Description
fetchAll()calls 4 endpoints every second:/apps/{id}/status/apps/{id}/container-logs/apps/{id}/deployments/{id}/logs/apps/{id}/recent-deploymentsThis happens even when nothing is deploying and the app is in a stable state. For a single-user app this is wasteful but tolerable; for multiple browser tabs it multiplies.
Suggested Fix
building/deployingstatus)implement all fixes on a PR. idle interval check should be 10s.