• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to send 'sync task' completed

Community Beginner ,
Oct 23, 2017 Oct 23, 2017

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

TOPICS
SDK

Views

276

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Oct 23, 2017 Oct 23, 2017

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!

Votes

Translate

Translate
LEGEND ,
Oct 23, 2017 Oct 23, 2017

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 23, 2017 Oct 23, 2017

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"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 23, 2017 Oct 23, 2017

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 23, 2017 Oct 23, 2017

Copy link to clipboard

Copied

LATEST

Glad you resolved it quickly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines