Intel-bigdata / SSM

Smart Storage Management for Big Data, a comprehensive hot/cold data optimized solution
Apache License 2.0
134 stars 67 forks source link

Fix execution issue of one shot rule #2184

Closed PHILO-HE closed 4 years ago

PHILO-HE commented 4 years ago

When "at now" is embedded in SSM rule, in the rule parsing time, current time will replace it to mark start/end time (one time execution). But in the scheduling time, rule executor will reject the execution because it finds the scheduling time is later than the end time of rule. We need to delay the assignment of end time of rule to the time when scheduling occurs.

PHILO-HE commented 4 years ago

In another word, "now" should be the time of scheduling after the triggering, instead of the time when parsing the rule after the submission.

PHILO-HE commented 4 years ago

User needs to note that if a specific time is given for one shot rule, that time should not be earlier than the rule's trigger time.