The invention provides a global task scheduling method and
system of a time-aware state
machine based on event triggering. The method comprises the following steps: in response to the fact that physical time reaches a preset logic time boundary, generating a logic time vector comprising a time vector and a logic
time index; submitting the logic time vector to a distributed
consensus engine to make
system nodes reach a
consensus and form a
consensus logic time vector; and taking the consensus logic time vector as input, driving a time sensing state
machine corresponding to the task to perform state transition, and triggering task execution when the state transition is performed to an execution state. According to the method, variable physical time calculation and stable
logic state decision are decoupled, global logic time is synchronized through a consensus mechanism, the problem of scheduling inconsistency caused by
daylight saving time and
time zone rule change in cross-
time zone and cross-region environments is fundamentally solved, and the method has natural
immunity for time anomalies such as disappearance time and
repetition time.