LCOV - code coverage report
Current view: top level - src/platform/workspace/api - deploymentListingTimeouts.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 9 9
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : /**
       2              :  * How long the deployment listing request may take once sent. Ingest
       3              :  * answers it with several upstream calls in a row (deployments, builds,
       4              :  * then each Build's Releases).
       5              :  */
       6         2356 : export const DEPLOYMENT_LISTING_TIMEOUT_MS = 30_000
       7              : 
       8              : /**
       9              :  * How long the editor's missing-model check waits for the boot listing
      10              :  * before it checks the library as on Comfy Cloud. The request timeout only
      11              :  * starts once the sign-in step before it has answered, and that step can
      12              :  * hang (the token exchange is a plain fetch), so this ceiling sits above
      13              :  * it: a listing that answers within the request timeout is still waited
      14              :  * for, and a hung sign-in never holds the check forever.
      15              :  */
      16         2356 : export const DEPLOYMENT_LISTING_BACKSTOP_MS =
      17              :   DEPLOYMENT_LISTING_TIMEOUT_MS + 15_000
      18              : 
      19              : /**
      20              :  * The pauses before each retry of the page's boot listing when it fails
      21              :  * without a definite answer (a 5xx, a 408 or 429, a network error, a
      22              :  * request timeout): three attempts in all. The editor's boot waits no
      23              :  * longer than `DEPLOYMENT_LISTING_BACKSTOP_MS` for them.
      24              :  */
      25         2356 : export const DEPLOYMENT_LISTING_RETRY_DELAYS_MS: readonly number[] = [
      26              :   1_000, 2_000
      27              : ]
      28              : 
      29              : /** How long the boot waits for the listing when this browser has no deployment hint or link. */
      30         2356 : export const DEPLOYMENT_LISTING_NO_HINT_WAIT_MS = 5_000
      31              : 
      32              : /** How long Comfy Cloud's Extensions button waits for the listing before it opens the custom-node survey. */
      33         2356 : export const DEPLOYMENT_LISTING_EXTENSIONS_WAIT_MS = 5_000
      34              : 
      35              : /** How long opening a workflow with missing nodes waits for the listing before it stops offering the custom deployment dialog. */
      36         2356 : export const DEPLOYMENT_LISTING_MISSING_NODES_WAIT_MS = 5_000
      37              : 
      38              : /** Minimum gap between focus-triggered listing retries. */
      39         2356 : export const DEPLOYMENT_LISTING_FOCUS_RETRY_MS = 60_000
      40              : 
      41              : /** How long a Start request may take once sent. */
      42         2356 : export const DEPLOYMENT_START_TIMEOUT_MS = 30_000
      43              : 
      44              : /** How often the open menu refreshes the listing while a deployment starts. */
      45         2356 : export const DEPLOYMENT_START_POLL_MS = 5_000
        

Generated by: LCOV version 2.0-1