Yogi, I would not recommend pushing properties using the rest api. Currently properties are applied in the middle of an application window and it is not fault tolerant. I would also not recommend using handleIdleTime as Sandeep as mentioned.
Pullarao, the safest mechanism to apply multiple properties at the same time, while the application is running, is to do the following:
- Add a property update operator to your dag which polls the properties.
- Connect the property update operator to all the operators in your dag with input port / output port / stream which need to be updated.
- When updates are received for properties, send the relevant updates to each operator.
- When an operator receives an update, hold it until the beginning of the next window and apply the property in beginWindow.
- Make sure all the operators have the same application window count.
This is a very roundabout way to do it, and requires the application developer to write code, but it is the only fault tolerant way to do things as of now. There is a ticket open to set multiple properties at once on operators safely in one REST call or cli call. That feature is currently on the apex roadmap.
Thanks,
Tim