Timed task execution method and device, server and readable storage medium
The invention provides a timed task execution method and device, a server and a readable storage medium, and relates to the technical field of server clusters. The method comprises the following steps: acquiring identification information of a timed task; judging whether the timed task corresponding...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a timed task execution method and device, a server and a readable storage medium, and relates to the technical field of server clusters. The method comprises the following steps: acquiring identification information of a timed task; judging whether the timed task corresponding to the identification information of the timed task is locked by a second server or not; if the timed task is locked by a second server and the locking duration exceeds a set timeout duration, determining that the second server is abnormal when executing the timed task, and unlocking the timed task to remove the binding relationship between the timed task and the second server; the timed task is locked, so that the timed task is bound with the first server; if locking succeeds, the timed task continues to be executed. According to the method provided by the invention, the technical problem that the timed task can be executed when the server is abnormal can be solved.
本申请提供一种定时任务执行方法、装置、服务器和可读存储介质,涉及服务器集群技术领域。该方法包括 |
---|