Timed task scheduling method under multi-service cluster of application system

The invention discloses a timed task scheduling method under a multi-service cluster of an application system, which relates to the field of cluster servers and comprises the following steps of: receiving an instruction to create a task, storing data corresponding to the task into a database and syn...

Full description

Saved in:
Bibliographic Details
Main Authors PEI JUNFENG, WANG ZONG
Format Patent
LanguageChinese
English
Published 07.04.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a timed task scheduling method under a multi-service cluster of an application system, which relates to the field of cluster servers and comprises the following steps of: receiving an instruction to create a task, storing data corresponding to the task into a database and synchronizing the data into a redis cache; querying a task list cached by redis, and updating an executable task list according to the state information of each task in the task list; obtaining a task lock scrambling list corresponding to the executable task list based on a redis distributed mechanism, and determining a target task through a scrambling lock mechanism and a preorder condition completion condition of the task; and creating a sub-task thread for the target task, and placing the sub-task thread in a local thread pool for asynchronous execution and synchronous redis cache. According to the scheme, a redis scrambling lock mechanism is adopted to preempt the tasks, a preorder condition and subsequent conditi
Bibliography:Application Number: CN202211682914