Copy link to clipboard
Copied
Hey hello,
Im working my way trough Lua and the Publish service SDK.
Until now I'm unable to find a way to send some sort of 'task completed' signal after publishing images.
Is this even possible? Or else, would there be a creative solution?
Advice is highly appreciated
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!
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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"
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Glad you resolved it quickly.