You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our application UI, we want to show user the current update status:
Downloading
Download finished
How would one accurately determine whether the new release has finished downloading (2)? (Assume there's a lockfile already created so supervisor won't install the update)
I've discovered two ways, but each have problem (bug?):
1. Polling /v2/application/state
Problem: API reports all services as "Downloaded" in the middle of download.
Log:
// Context: The new release (a2620a4c47d6402ce31874a7b42f1a82) adds a new service "super-logger" and updates "database", "embedded" services. "video" service is unchanged.// Idle2023-10-3112:18:31: {"test-fleet":{"appId":2004717,"commit":"880e9be796fb820699fde61dd334b438","services":{"database":{"status":"Running","releaseId":2769991,"downloadProgress":null},"embedded":{"status":"Running","releaseId":2769991,"downloadProgress":null},"video":{"status":"Running","releaseId":2769991,"downloadProgress":null}}}}2023-10-3112:18:32: {"test-fleet":{"appId":2004717,"commit":"880e9be796fb820699fde61dd334b438","services":{"database":{"status":"Running","releaseId":2769991,"downloadProgress":null},"embedded":{"status":"Running","releaseId":2769991,"downloadProgress":null},"video":{"status":"Running","releaseId":2769991,"downloadProgress":null}}}}// Download starts2023-10-3112:18:34: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:36: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:38: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:40: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:41: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:42: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":93}}}}2023-10-3112:18:44: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":1},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloading","releaseId":2771256,"downloadProgress":100}}}}2023-10-3112:18:46: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":96},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:47: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloading","releaseId":2771256,"downloadProgress":96},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}// Here it starts reporting all services status as "Downloaded". Is the download finished?2023-10-3112:18:49: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:50: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:51: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:53: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}// Nope, "database" service starts downloading2023-10-3112:18:55: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:56: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:57: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:18:59: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:00: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:01: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:03: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":93},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:04: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":93},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:05: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":93},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:07: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":93},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:08: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloading","releaseId":2771256,"downloadProgress":100},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}// Download actually finished2023-10-3112:19:09: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:12: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:14: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:15: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:17: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:18: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:20: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:21: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:23: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:24: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:26: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:27: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:29: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:30: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:31: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:33: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:34: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:36: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:37: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}2023-10-3112:19:39: {"test-fleet":{"appId":2004717,"commit":"a2620a4c47d6402ce31874a7b42f1a82","services":{"database":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"embedded":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"video":{"status":"Downloaded","releaseId":2771256,"downloadProgress":null},"super-logger":{"status":"Running","releaseId":2771256,"downloadProgress":null}}}}
2. Polling v2/state/status
Problem: API reports all images as "Downloaded" in the middle of download.
Log: https://rentry.co/m7v3h (CTRL+F "//" for relevant comments)
The text was updated successfully, but these errors were encountered:
In our application UI, we want to show user the current update status:
How would one accurately determine whether the new release has finished downloading (2)? (Assume there's a lockfile already created so supervisor won't install the update)
I've discovered two ways, but each have problem (bug?):
1. Polling
/v2/application/state
Problem: API reports all services as "Downloaded" in the middle of download.
Log:
2. Polling
v2/state/status
Problem: API reports all images as "Downloaded" in the middle of download.
Log: https://rentry.co/m7v3h (CTRL+F "//" for relevant comments)
The text was updated successfully, but these errors were encountered: