Skip to main content
1-Visitor
September 24, 2021
Question

Applying CRON to Scheduler

  • September 24, 2021
  • 2 replies
  • 1584 views

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

2 replies

22-Sapphire I
September 27, 2021

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/

 

1-Visitor
October 4, 2021

Hello PaiChung,

 

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

 

Thanks

Gopi

22-Sapphire I
October 4, 2021

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.

Support
October 13, 2021

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