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

Applying CRON to Scheduler

gvyakaranam
12-Amethyst

Applying CRON to Scheduler

Hello,

 

I would like to apply manual CRON to Scheduler with below requirements.

this scheduler should run immediately or in 30 seconds - it's only for one time, once deployed it.

and then this scheduler should run periodically for every 6 hours.

 

Kindly let me know to achieve this requirement.

 

Thanks

Gopi

4 REPLIES 4
PaiChung
22-Sapphire I
(To:gvyakaranam)

I don't know enough about CRON, but I would just trigger the first time based on the ThingStart and then set the CRON for every 6 hours.

Use something like: https://crontab.guru/

 

Hello PaiChung,

 

May I know on changing Subscription's event (inputs) from ThingStart to ScheduledEvent programmatically in Scheduler thing.

 

Thanks

Gopi

PaiChung
22-Sapphire I
(To:gvyakaranam)

It can't really be done programmatically unfortunately.

There is something called 'Dynamic subscriptions' which you can create programmatically but it is effective only for that runtime, so if ThingWorx is restarted the Dynamic subscriptions will disappear and have to be re-created.

slangley
23-Emerald II
(To:gvyakaranam)

Hi @gvyakaranam.

 

If you feel that your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements


Top Tags