Problem
It's difficult to recognize when there is an issue with the App's network queue especially in production. If the queue gets stuck and fails to process any new requests, it's difficult to recognize when this is happening without logging. This is a critical problem because all reads are blocked on the write queue.
Solution
Add the current length of the network queue to the log whenever another API command is queued. This should make it easy to recognize when the app is failing to clear the queue just by viewing logs.
Specifically, we should
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~013c1fa89f2e72f914
- Upwork Job ID: 1780254517492736000
- Last Price Increase: 2024-04-16
- Automatic offers:
- tienifr | Contributor | 0
Problem
It's difficult to recognize when there is an issue with the App's network queue especially in production. If the queue gets stuck and fails to process any new requests, it's difficult to recognize when this is happening without logging. This is a critical problem because all reads are blocked on the write queue.
Solution
Add the current length of the network queue to the log whenever another API command is queued. This should make it easy to recognize when the app is failing to clear the queue just by viewing logs.
Specifically, we should
Upwork Automation - Do Not Edit