cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Ensuring all subscriptions have finished

jensc
17-Peridot

Ensuring all subscriptions have finished

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, 

1 ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:jensc)

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.

View solution in original post

2 REPLIES 2
PaiChung
22-Sapphire I
(To:jensc)

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.

jensc
17-Peridot
(To:PaiChung)

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.

Top Tags