Refreshing a data-set from backend module

I have a data-set connected to a progress bar on one of the pages.
In order to make the progress advance I have to refresh the data-set once updated a value in the collection.
I also have some backend code which updates the collection to which the data-set is connected.
I need the progress to advance upon these updates as well, but since they are happening on backend I can’t just do $w(‘my-data-set’).refresh().
Any idea how I can do that?