Open mklasen opened 1 month ago
Check. I agree. Additionally, we check the amount of pending scan_product events against the total amount of products, so thinking about this further... if you rapid-save multiple products you could technically also break this, as it will just never get to 100%...
I'd say we also need to add a timestamp on post_save and on the batch-job to denote when scanning started again. That way I can query the pending jobs against the completed jobs and always get the correct number.
Related: #1
It's currently possible to run multiple full scans simultaneously. This causes the progress bar (introduced in 279) to report a negative count and percentage.
Relevant comment:
Originally posted by @mklasen in https://github.com/MindblownHQ/shop-health/issues/279#issuecomment-2377045557
I'm in favor of clearing all current scans when a new scan is triggered.