Skip to main content
17-Peridot
November 4, 2022
Solved

Ensuring all subscriptions have finished

  • November 4, 2022
  • 1 reply
  • 1031 views

Hello,

 

I have rebuilt a project that fetches some information regarding my companies thingworx platforms.

It had to be rebuilt as it was timing out from all of the API requests taking too long to complete.

 

So I designed it like this instead:

jensc_0-1667566985387.png

 

Where one scheduler will trigger one subscription per platform, which in turn will get some data back from the remote platform. We will then push this to our DB.

 

Now, the "issue" is that there is no way of knowing when all of these subscriptions have actually completed.

Or am I wrong about that?

 

If anyone has any insight or have some good links relating to this, please let me know.

 

Regards, 

Best answer by PaiChung

You can have the subscription invoke or set something when finished? Same if you are using it to call asynch services put something in that service.

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
November 4, 2022

You can have the subscription invoke or set something when finished? Same if you are using it to call asynch services put something in that service.

jensc17-PeridotAuthor
17-Peridot
November 4, 2022

Hello,

 

Thank you for your answer.

I have thought about this as well and since we so far have a limited amount of platforms, somwhere around 30-50, it might not be such a big deal to have some sort of datatable containing which platforms are "done".

 

I'll for sure consider this.

 

Thanks.