Do you want alert the user that the publish task is completed? Or do you want to notify another part of your plugin code? Or notify an external program?
Yes, I see now my question is far from complete..
I am making json calls from/to a wordpress website by using a custom api.
Basically I'm am looking for a way to trigger code on the webserver after the sync-task succesfully completed.
So out of your 3 options, I would say either number 2 or 3. "Notify another part of the plugin code, and/or notify an external program"
Let me answer my own question;
I found this bit in my ExportServiceProvider `progressScope:done()`. Thats the place where I can add a new communication to the webserver. How that will be done, is obviously up to me and my own plugin.
Strangely, just "asking" this question here, helped me out!
Glad you resolved it quickly.