elasticio / elasticio-cli

Command-line interface for elastic.io components
2 stars 1 forks source link

Testing realtime triggers #53

Open ghost opened 4 years ago

ghost commented 4 years ago

I am having problems testing a realtime trigger locally.

That is mainly because the shutdown() function is called immediately after process(). Because of that, the realtime trigger has no time to receive external data. In contrast, in the platform, shutdown() function is only called when the user manually stops the realtime flow.

It would be useful to be able to specify a duration after which the shutdown function is called (e.g. 5 seconds). This would better mimic the behavior of realtime flows.

jhorbulyk commented 4 years ago

It would be useful to be able to specify a duration after which the shutdown function is called (e.g. 5 seconds). This would better mimic the behavior of realtime flows.

This makes sense as a feature.