DB Updates in Background Task Not Reflected In Main
I have a background task that updates its status (% complete) to the db. Then the app polls the db to update a progress bar. The problem is I'm not getting the updated value from the db, even though I'm doing save(flush:true). So right now, my progress bar never gets updated and I'm stuck in an endless loop, since my percent complete is stuck at 0. What am I doing wrong?