This invention discloses a task scheduling method, apparatus, terminal device, and storage medium for multi-
scenario intelligent applications, belonging to the field of task scheduling technology. The method involves: acquiring data such as task load,
device status, business indicators, node topology, and several tasks to be executed; calculating a
system state vector, a
scenario embedding vector, a resource constraint vector, and the similarity between the
scenario embedding vector and each historical scenario embedding vector; determining optimal strategy parameters based on the similarity, historical strategy parameters,
system state vector, resource constraint vector, and several tasks to be executed; and finally calculating a
resource allocation share based on the optimal strategy parameters,
system state vector, resource constraint vector, and tasks to be executed, and executing the corresponding tasks under the
resource allocation share. By implementing this invention, the problem of
resource allocation imbalance that exists in existing technologies that use fixed rules or fixed optimization strategies to allocate computing resources to tasks to be executed can be solved.