karbor.services.operationengine.engine.triggers.timetrigger package

Submodules

karbor.services.operationengine.engine.triggers.timetrigger.time_trigger module

class karbor.services.operationengine.engine.triggers.timetrigger.time_trigger.TimeTrigger(trigger_id, trigger_property, executor)

Bases: karbor.services.operationengine.engine.triggers.BaseTrigger

IS_ENABLED = False
TRIGGER_TYPE = 'time'
classmethod check_configuration()
classmethod check_trigger_definition(trigger_definition)
register_operation(operation_id, **kwargs)
shutdown()
unregister_operation(operation_id, **kwargs)
update_trigger_property(trigger_property)
class karbor.services.operationengine.engine.triggers.timetrigger.time_trigger.TriggerOperationGreenThread(first_run_time, function)

Bases: object

kill()
property pre_run_time
property running

karbor.services.operationengine.engine.triggers.timetrigger.time_trigger_multi_node module

class karbor.services.operationengine.engine.triggers.timetrigger.time_trigger_multi_node.TimeTrigger(trigger_id, trigger_property, executor)

Bases: karbor.services.operationengine.engine.triggers.BaseTrigger

IS_ENABLED = True
TRIGGER_TYPE = 'time'
classmethod check_configuration()
classmethod check_trigger_definition(trigger_definition)
register_operation(operation_id, **kwargs)
shutdown()
unregister_operation(operation_id, **kwargs)
update_trigger_property(trigger_property)

karbor.services.operationengine.engine.triggers.timetrigger.utils module

karbor.services.operationengine.engine.triggers.timetrigger.utils.check_and_get_datetime(time, time_name)
karbor.services.operationengine.engine.triggers.timetrigger.utils.check_configuration()
karbor.services.operationengine.engine.triggers.timetrigger.utils.check_trigger_definition(trigger_definition)

Check trigger definition

All the time instances of trigger_definition are in UTC, including start_time, end_time

karbor.services.operationengine.engine.triggers.timetrigger.utils.compute_next_run_time(start_time, end_time, timer)
karbor.services.operationengine.engine.triggers.timetrigger.utils.get_time_format_class()
karbor.services.operationengine.engine.triggers.timetrigger.utils.get_timer(trigger_property)

Module contents