The invention discloses a task scheduling method and
system for a multi-tenant mode SaaS service cluster environment, belongs to the technical field of SaaS services, and solves the problem that taskscheduling in the prior art cannot meet the requirements of high
concurrency and expandability in the multi-tenant mode SaaS service cluster environment. The task scheduling method for a multi-tenantmode SaaS service cluster environment comprises the following steps: centralizing tasks in used application examples in a task
database; obtaining tenant IDs to complete packaging of the dynamic taskinformation; obtaining tenant IDs, obtaining application instances from the application instance cluster
list, calling static tasks by taking the tenant IDs as entry parameters to create APIs, and packaging the static tasks by the APIs; performing
clock synchronization of
cluster node task scheduling through a
database, and in a multi-tenant cluster environment, using a
Quartz assembly for task scheduling execution. High-
concurrency and extensible task scheduling is realized in a multi-tenant mode SaaS service cluster environment, and the efficiency of task scheduling and task
processing is improved.