WO2020140683A1 - 任务调度方法、装置、计算机设备和存储介质 - Google Patents

任务调度方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020140683A1
WO2020140683A1 PCT/CN2019/123326 CN2019123326W WO2020140683A1 WO 2020140683 A1 WO2020140683 A1 WO 2020140683A1 CN 2019123326 W CN2019123326 W CN 2019123326W WO 2020140683 A1 WO2020140683 A1 WO 2020140683A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
scheduling
identifier
configuration information
executed
Prior art date
Application number
PCT/CN2019/123326
Other languages
English (en)
French (fr)
Inventor
颜赛云
谢伟
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020140683A1 publication Critical patent/WO2020140683A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • This application relates to a task scheduling method, device, computer equipment, and storage medium.
  • the configuration information corresponding to each batch task is usually pre-configured in the database or configuration file of the processing server, such as the preset trigger time of the batch task.
  • the processing server triggers the batch task corresponding to the preset trigger time.
  • the inventor realized that when the trigger time of a batch task needs to be changed, the configuration information corresponding to the batch task needs to be changed, so that the database or configuration file needs to be updated accordingly, thereby reducing the schedulability of the batch task, and there is task scheduling The problem of low efficiency.
  • a task scheduling method, apparatus, computer equipment, and storage medium are provided.
  • a task scheduling method includes:
  • scheduling configuration information corresponding to the task identifier in the configuration file according to the task identifier; the scheduling configuration information is pre-configured in the configuration file; the scheduling configuration information is used to perform the task to be executed Scheduling information;
  • a task scheduling device includes:
  • An obtaining module configured to obtain the task identifier of the task to be executed according to the task scheduling instruction when receiving the task scheduling instruction sent by the terminal;
  • the query module is used to query scheduling configuration information corresponding to the task identifier in the configuration file according to the task identifier; the scheduling configuration information is pre-configured in the configuration file; the scheduling configuration information is used to Describe the information of the tasks to be scheduled;
  • a determining module configured to determine a processing server for executing the task to be executed according to the scheduling configuration information
  • the scheduling module is used to generate a task execution instruction corresponding to the task identifier and send it to the processing server.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the computer-readable instructions are executed by the one or more processors, the one or more Each processor implements the steps of the task scheduling method provided in any embodiment of this application.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to implement any of the present application
  • the steps of the task scheduling method provided in an embodiment.
  • FIG. 1 is an application scenario diagram of a task scheduling method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a task scheduling method according to one or more embodiments.
  • FIG. 3 is a schematic flowchart of a task scheduling method in another embodiment.
  • FIG. 4 is a block diagram of a task scheduling apparatus according to one or more embodiments.
  • FIG. 5 is a block diagram of a task scheduling apparatus in another embodiment.
  • Figure 6 is a block diagram of a computer device in accordance with one or more embodiments.
  • the task scheduling method provided in this application can be applied to the application environment shown in FIG. 1.
  • the terminal 102 and the processing server 106 communicate with the dispatch server 104 through the network, respectively.
  • the scheduling server 104 correspondingly obtains the task identifier of the task to be executed according to the task scheduling instruction, queries the pre-configured scheduling configuration information in the configuration file according to the task identifier, and according to the scheduling configuration information
  • the processing server 106 for performing the task to be executed is determined, and a task execution instruction corresponding to the task identifier is generated, and then the task execution instruction is sent to the processing server 106.
  • the terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablets, and portable wearable devices.
  • the dispatch server 104 and the processing server 106 may be implemented by independent servers or a server cluster composed of multiple servers.
  • a task scheduling method is provided. Taking the method applied to the scheduling server in FIG. 1 as an example for illustration, it includes the following steps:
  • Task scheduling instructions are instructions used to trigger task scheduling operations.
  • the task scheduling instruction is used to instruct the scheduling server to perform the corresponding task scheduling operation for the task identifier corresponding to the specified task to be executed.
  • the task to be executed refers to a task that can be executed.
  • the task to be executed may be a batch task, and the batch task may be a scheduled task that is triggered periodically at a preset trigger time. It can be understood that the batch task may refer to a task that repeatedly executes the same processing flow for different input parameters.
  • the processing server receives the task execution instruction sent by the scheduling server for the batch task
  • the loan information corresponding to each of the multiple users will be obtained separately, and the dunning SMS will be sent to the user terminal corresponding to the corresponding user according to the loan information.
  • the task ID is used to uniquely identify the task to be executed. It can be understood that the task ID can be used to uniquely identify batch tasks.
  • the terminal detects the preset trigger operation of the user on the user operation interface in real time.
  • the terminal When a preset trigger operation is detected, the terminal generates a corresponding task scheduling instruction according to the preset trigger operation, and sends the generated task scheduling instruction to the scheduling server.
  • the scheduling server When receiving the task scheduling instruction sent by the terminal, the scheduling server correspondingly obtains the task identifier of the task to be executed from the terminal according to the task scheduling instruction.
  • the terminal correspondingly obtains the task identifier of the task to be executed according to the detected preset trigger operation, generates a corresponding task scheduling instruction according to the obtained task identifier, and sends the task scheduling instruction to the task scheduling server.
  • the task scheduling server parses the received task scheduling instruction to extract the task identifier corresponding to the task to be executed from the task scheduling instruction.
  • the terminal sends the task scheduling instruction based on the HTTP (Hyper Text Transfer Protocol) or HTTPS (Hyper Text Transfer Protocol) over Secure Socket Layer (Secure Socket Layer Hypertext Transfer Protocol) transmission protocol.
  • HTTP Hyper Text Transfer Protocol
  • HTTPS Hyper Text Transfer Protocol
  • Secure Socket Layer Secure Socket Layer Hypertext Transfer Protocol
  • S204 Query scheduling configuration information corresponding to the task identifier in the configuration file according to the task identifier; the scheduling configuration information is pre-configured in the configuration file; the scheduling configuration information is information for scheduling the task to be executed.
  • the configuration file is pre-configured with a correspondence between task identifiers and corresponding scheduling configuration information.
  • the scheduling configuration information is pre-configured information for scheduling tasks to be executed.
  • the scheduling configuration information may include the number of processing servers for executing the tasks to be executed corresponding to the corresponding task identifier, and may also include processing server identifiers corresponding to one or more processing servers for executing the task to be executed. It can be understood that the scheduling configuration information may specify the number of processing servers that can be used to execute the corresponding task to be executed, and may also specify one or more processing servers that can be used to execute the task to be executed.
  • the scheduling configuration information may specify whether the corresponding task to be executed is executed on one or more processing servers, or may specifically specify one or more processing servers used to execute the task to be executed, and may also specify that it may be used to execute
  • the one or more processing servers (that is, candidate processing servers) of the task to be executed depends on the scheduling configuration information corresponding to the corresponding task identifier in the scheduling information configuration process.
  • the server queries the pre-configured configuration file in the database, and queries the configuration file corresponding to the task identifier for scheduling configuration information according to the acquired task identifier .
  • the server may configure a corresponding configuration file for each task ID in the database, and configure scheduling configuration information corresponding to the corresponding task ID in the configuration file.
  • the server queries the pre-configured configuration file in the database according to the task identifier, and then correspondingly obtains the pre-configured scheduling configuration information from the configuration file, and uses the scheduling configuration information as According to the query configuration information corresponding to the task identifier.
  • S206 Determine a processing server for executing the task to be executed according to the scheduling configuration information.
  • the scheduling server determines the number of processing servers used to execute the task to be executed corresponding to the task ID according to the scheduling configuration information queried for the task ID, and determines one or more candidates that can be used to execute the task to be executed
  • the processing server determines the processing server for executing the task to be executed from the one or more candidate processing servers.
  • the number of processing servers determined by the scheduling server from one or more candidate processing servers for executing the task to be executed is equal to the number of processing servers corresponding to the scheduling configuration information for executing the task to be executed.
  • the scheduling server determines the number of processing servers used to execute the task to be executed according to the scheduling configuration information, and the candidate processing server identifier corresponding to one or more candidate processing servers that can be used to execute the task to be executed.
  • the scheduling server will correspond to one or more candidate processing server identifiers determined according to the scheduling configuration information.
  • the candidate processing server is determined as one or more processing servers for performing the task to be executed.
  • the scheduling server selects a pre-selection from a plurality of candidate processing server identifiers determined according to scheduling configuration information A number of candidate processing server identifiers are set, and the candidate processing servers corresponding to the preset number of candidate processing server identifiers are determined as processing servers for executing tasks to be executed.
  • the preset number is equal to the number of processing servers for executing tasks to be executed.
  • the scheduling server determines the three candidate processing servers a, b, and c as the processing servers for executing the task X to be executed; if The number of processing servers for executing the task X to be executed is specified as one or two, and the scheduling server selects one or two candidate processing servers from the three candidate processing servers a, b, and c, and selects The candidate processing server of is determined as the processing server for executing the task X to be executed.
  • S208 Generate a task execution instruction corresponding to the task identifier and send it to the processing server.
  • the task execution instruction is an instruction for triggering a task execution operation for the task to be executed.
  • the task execution instruction is used to instruct the processing server to query the corresponding task execution function according to the specified task identifier, and call the task execution function to implement the task execution operation for the corresponding task to be executed.
  • the server generates a corresponding task execution instruction according to the task identifier corresponding to the task scheduling instruction, and sends the generated task execution instruction to the processing server determined according to the scheduling configuration information.
  • the processing server extracts the task ID corresponding to the task to be executed from the received task execution instruction, queries the corresponding task execution function and each parameter information as the input parameter of the task execution function according to the task ID, and according to each parameter information Call the task execution function separately to implement the task execution operation for the task to be executed corresponding to the task execution instruction.
  • the processing server obtains the task ID of the task to be executed according to the task execution instruction, and queries the task execution function for sending a dunning SMS to the user according to the task ID, and the target user ID needed to send the dunning SMS, and then according to the target user ID Query the corresponding loan information, use the queried loan information as the input parameter of the task execution function, and call the task execution function according to the loan information to send a dunning SMS to the user terminal corresponding to the target user ID, the target user ID
  • the processing server performs the above operation separately for each target user ID.
  • the scheduling server when there are multiple processing servers corresponding to the task to be executed determined according to the scheduling configuration information, the scheduling server sends the task execution instructions generated for the task identifier to the determined multiple The processing server, so that the multiple processing servers execute the to-be-executed task according to the parallel, which improves the task execution efficiency.
  • the scheduling server sends the task execution instructions generated for the task identifier to the determined multiple The processing server, so that the multiple processing servers execute the to-be-executed task according to the parallel, which improves the task execution efficiency.
  • the task scheduling instruction sent by the terminal when the task scheduling instruction sent by the terminal is received, the task identifier of the task to be executed is determined according to the task scheduling instruction, and the pre-configured scheduling configuration information is queried in the configuration file according to the task identifier, and then according to the scheduling configuration The information performs the corresponding task scheduling operation. In this way, the corresponding task scheduling operation is triggered in real time according to the task scheduling instruction sent by the terminal, which improves the task scheduling efficiency.
  • the processing server for executing the task to be executed corresponding to the task scheduling execution can be quickly determined, and then the corresponding task execution instruction is generated and sent to the processing server to pass the
  • the processing server executes the task to be executed corresponding to the task scheduling instruction, which realizes the effective scheduling of the task to be executed and further improves the task scheduling efficiency.
  • the above task scheduling method further includes: when the task scheduling instruction sent by the terminal is not received, polling the preset trigger time corresponding to the pre-configured task identifier in the configuration file according to a preset cycle; The trigger time matches the current system time; when the match is successful, the pre-configured task ID is determined as the task ID of the task to be executed.
  • the preset period is a preset time interval between performing the same operation twice.
  • the preset period may specifically be the time interval between the scheduling server polling the configuration file twice.
  • the preset period can be customized according to the actual situation, such as 1 second. Polling refers to repeating the query operation for the configuration file according to a preset period.
  • the preset trigger time is a preset time for triggering the task scheduling operation for the task to be executed, that is, the time for triggering the task execution operation for the task to be executed.
  • the preset trigger time may be a specific time point, such as the first day of each month, the last day of each week, nine o'clock in the evening, or ten o'clock in the morning on the last day of each month.
  • the scheduling server polls the preset trigger time corresponding to the pre-configured task identifier in the configuration file according to a preset cycle.
  • the scheduling server obtains the current system time and matches the acquired current system time with the preset trigger time polled from the configuration file.
  • the match indicates that the current system time reaches the preset trigger time corresponding to the pre-configured task ID.
  • the scheduling server determines the task corresponding to the task ID as the task to be executed, that is, determines the task ID as the task to be executed. Task identification, and trigger the corresponding task scheduling operation according to the task identification.
  • a preset trigger time corresponding to each task identifier is pre-configured in the configuration file.
  • the scheduling server respectively matches the plurality of preset trigger times with the current system time.
  • the scheduling server determines the task identifier corresponding to the preset trigger time that matches successfully as the task identifier to be executed.
  • the scheduling server determines the tasks corresponding to the task identifiers corresponding to the multiple preset trigger times that match successfully as the tasks to be executed, respectively , That is, to determine multiple tasks to be performed.
  • the corresponding task scheduling operation is triggered by polling the pre-configured preset trigger time, that is, according to the terminal's task scheduling instruction or the pre-configured preset trigger Time can trigger the corresponding task scheduling operation, ensuring the schedulability of the task and improving the task scheduling efficiency.
  • the above task scheduling method further includes: receiving the account login request sent by the terminal; determining the login account and login password corresponding to the account login request; and sending the login account and login password to the account management server Perform authentication; receive the authentication prompt information corresponding to the account management server feedback; when the authentication prompt information indicates that the authentication is passed, perform the account login operation.
  • the account login request is a request for triggering the account login operation.
  • the account login request may carry the login account to be logged in and the corresponding login password.
  • the authentication prompt information is used to characterize the authentication result for the authentication of the login account and login password.
  • the terminal when a login trigger operation triggered by the user on the user operation interface is detected, the terminal obtains a corresponding login account and login password according to the detected login trigger operation, and generates a corresponding account login request based on the login account and login password, And send the generated account login request to the dispatch server.
  • the dispatch server extracts the login account and login password from the received account login request, and sends the generated login account and login password to the account management server for authentication.
  • the account management server queries the pre-stored preset login account and preset login password in the database according to the received login account, and checks the received login account according to the queried preset login account and preset login password Perform authentication with the login password, and generate corresponding authentication prompt information according to the authentication result, and then correspondingly feed back the authentication prompt information to the dispatch server.
  • the scheduling server performs the corresponding account login operation according to the authenticated login account and the login password, so as to realize the response to the account login request Account login process.
  • the account management server queries the account validity status corresponding to the login account according to the received login account.
  • the account management server queries the pre-stored preset login password according to the corresponding login account, and matches the queried preset login password with the corresponding account password.
  • the match is successful, it indicates that the login password obtained according to the account login request is consistent with the pre-stored preset login password, which means that the authentication result for the login password is authentication passed, and the account management server generates authentication prompt information indicating that the authentication is passed , And correspondingly feedback the authentication prompt information to the account management server.
  • the account management server When the match fails, it indicates that the obtained login password is inconsistent with the pre-stored preset login password, which means that the authentication result for the login password is that the authentication fails, and the account management server generates an authentication prompt message indicating that the authentication fails, and Correspondingly feedback the authentication prompt information to the account management server.
  • a UM (User Management) account system is deployed on the account management server, and more than one UM account (default login account) and password (default login password) are pre-stored in the database.
  • the account management server queries the database for the matching preset login account according to the received login account, and performs the above authentication operation for the login account and the login password according to the preset login account that matches successfully.
  • the dispatch server when receiving the authentication prompt message indicating that the authentication is passed, determines that the account login process is completed, and sends the prompt message of successful login to the terminal, so that the terminal displays the corresponding user operation interface to the user , So that the user can trigger the corresponding task scheduling instruction on the terminal through the user operation interface.
  • the login account and login password corresponding to the account login request are authenticated by means of the account management server, and when receiving the authentication prompt message indicating that the authentication is passed, the corresponding account login operation is performed so that the user can pass
  • the account with successful login manually triggers the corresponding task scheduling operation on the terminal, which improves the task scheduling efficiency.
  • user rights are set, and users with corresponding user rights can manually trigger task scheduling instructions, ensuring effective scheduling of tasks.
  • the above task scheduling method further includes: querying the corresponding task dependency relationship in the configuration file according to the task identifier; according to the task identifier Build a task dependency graph with the task dependency; send the task dependency graph to the terminal to display the task dependency graph on the task dependency display page through the terminal.
  • the task dependency relationship refers to the dependency relationship that triggers the task scheduling operation for the task to be executed, such as simultaneously triggering the task scheduling operations corresponding to each of the multiple tasks to be executed, or triggering the corresponding tasks of the multiple tasks to be executed in sequence according to the preset sequence.
  • Task scheduling operations (tasks depend on scheduling, and the triggering of the latter task scheduling operation depends on the completion of the previous task scheduling operation). For example, suppose there are three tasks A, B and C to be executed. The task scheduling operation corresponding to the task A to be executed is triggered by the task scheduling instruction of the terminal or a pre-configured preset trigger time.
  • the task scheduling operations for the tasks B and C to be executed are simultaneously triggered. It can be understood that the task scheduling operations corresponding to the tasks B and C to be executed are triggered simultaneously, and the task scheduling operations corresponding to the tasks to be executed A and B are task-dependent triggers.
  • the task dependency graph is a dependency graph composed of task identifiers corresponding to multiple tasks to be executed that have task dependencies and the task dependencies between the multiple tasks to be executed.
  • the task dependency graph may be to display the multiple task identifiers and corresponding task dependency relationships in the form of an image, so as to intuitively understand the dependency relationship between the multiple tasks to be executed.
  • the task dependency graph may specifically be a tree diagram, a mesh graph, or other diagrams that can visually display the task dependency relationship.
  • the scheduling server is pre-configured with task dependency relationships corresponding to multiple task identifiers.
  • the scheduling server queries the corresponding task dependency relationship in the configuration file according to the multiple task identifiers.
  • the scheduling server merges and analyzes the queryed multiple task dependency relationships to obtain the task dependency relationship between the multiple task identifiers.
  • the scheduling server constructs the task dependency graph corresponding to the task scheduling instruction according to the multiple task identifiers corresponding to the task scheduling instruction and the task dependency relationship between the multiple task identifiers, and sends the constructed task dependency diagram To the terminal.
  • the terminal displays the received task dependency graph on the task dependency relationship display page.
  • the task identifier a For example, suppose there are three tasks A, B and C to be executed, and the corresponding task identifiers are a, b and c. According to the task identifier a, the task identifier a and the task identifier c and the task identifier b are found in the configuration file.
  • task dependency relationships triggered by task dependency respectively; according to the task identifier b, it is found in the configuration file that the task identifier b and the task identifier a have a task dependency triggered by the task dependency trigger, and there is a task dependency relationship triggered by the task identifier c at the same time; The task ID c found in the configuration file that the task ID c and the task ID a have a task dependency triggered by task dependency, and that there is a task dependency triggered simultaneously with the task ID b; by analyzing and querying the task dependency In combination, it can be determined that there is a task dependency relationship between task identifier b and task identifier c and task identifier a and task dependency trigger, and there is a task dependency relationship between task identifier b and task identifier c that are triggered simultaneously.
  • the task dependency relationships corresponding to the multiple tasks to be executed that have the task dependency relationship are obtained, the corresponding task dependency relationship graph is constructed, and displayed on the task dependency relationship display page through the terminal, so as to be able to Intuitively understand the dependencies between tasks to be performed.
  • the above task scheduling method further includes: receiving the task execution status information fed back by the processing server for the task execution instruction; sending the task execution status information to the terminal to display the page in the task execution status through the terminal The task execution status information is displayed in.
  • the task execution status information is information for characterizing the execution status of the task to be executed.
  • Task execution status information includes task execution start, execution, execution success or execution failure, etc.
  • the processing server obtains the corresponding task execution status information when executing the corresponding task execution operation for the task to be executed corresponding to the task execution instruction, and feeds back the obtained task execution status information to the scheduling server.
  • the scheduling server sends the received task execution status information to the terminal to display the task execution status information on the task execution status display page through the terminal.
  • the processing server obtains the task identifier of the task to be executed according to the task execution instruction, and feeds back to the scheduling server corresponding task execution status information indicating that the task execution starts when the corresponding task execution operation is triggered according to the task identifier .
  • the processing server feeds back to the scheduling server information indicating the task execution status of the task execution.
  • the processing server feeds back the task execution status information indicating that the task execution is successful to the scheduling server.
  • the processing server feeds back the task execution status information indicating that the task execution failed to the scheduling server.
  • the scheduling server sends the task execution status information fed back by the processing server to the terminal in real time, so as to timely update the task execution status information displayed on the task execution status display page of the terminal.
  • the receiving and processing server feeds back task execution status information corresponding to the task execution instruction, and synchronizes with the terminal for display in real time, so that the task execution status can be intuitively understood.
  • the above task scheduling method further includes: receiving prompt information corresponding to the task execution instruction of the processing server; when the prompt information indicates that the task execution is abnormal, triggering the generation of alarm information; querying in the configuration file The alarm configuration information corresponding to the task ID; determining the alarm server for pushing the alarm information according to the alarm configuration information; and sending the alarm information to the alarm server.
  • the alarm configuration information is configuration information for specifying an alarm mode or an alarm server.
  • the alarm configuration information may include an alarm method, such as an email alarm or a short message alarm, and may also include an alarm server identifier corresponding to the alarm server used to push the alarm information.
  • the processing server detects the task execution status corresponding to the task execution operation in real time, and when it is determined that the task execution is abnormal, the processing server feeds back a notification indicating that the task execution is abnormal to the scheduling server information.
  • the scheduling server triggers the generation of corresponding alarm information according to the prompt information, and queries the configuration file corresponding to the task identifier in the configuration file according to the corresponding task identifier.
  • the scheduling server determines the alarm server identifier corresponding to the alarm server used to push the alarm information according to the alarm configuration information, and sends the alarm information to the corresponding alarm server according to the alarm server identifier, so that the alarm server can push the alarm information to terminal.
  • the dispatch server determines an alarm mode according to the alarm configuration information, determines an alarm server for pushing corresponding alarm information according to the alarm mode, and sends the alarm information to the determined alarm server.
  • the scheduling server determines the corresponding alarm mode and the alarm server ID corresponding to the alarm server used to push the alarm information according to the alarm configuration information, and sends the determined alarm mode and the generated alarm information to the alarm The alarm server corresponding to the server ID.
  • the alarm server pushes the corresponding alarm information to the terminal according to the received alarm mode.
  • the terminal may be a salesperson terminal or a developer terminal.
  • the alarm information is triggered to be generated and pushed to the terminal through the alarm server, so that the salesperson or developer can use the terminal's user operation interface when receiving the alarm information View exception information corresponding to tasks that perform exceptions.
  • the above task scheduling method further includes: receiving a configuration information update instruction sent by the terminal; extracting the target task identifier, target configuration information identifier, and target configuration information from the configuration information update instruction; according to the target task identifier And the target configuration information mark to query the configuration information to be updated in the configuration file; correspondingly update the configuration information to be updated according to the target configuration information.
  • the configuration information update instruction is an instruction for triggering the configuration information update operation.
  • the target task ID is the task ID of the corresponding configuration information to be updated
  • the target configuration information ID is the configuration information ID corresponding to the configuration information to be updated
  • the target configuration information is the update specified by the configuration information update instruction and corresponding to the target task ID Configuration information.
  • the terminal when a configuration information update trigger operation triggered by the user on the user operation interface is detected, the terminal generates a corresponding configuration information update instruction according to the detected configuration information update trigger operation, and sends the generated configuration information update instruction to Dispatch server.
  • the scheduling server extracts the target task identifier, the target configuration information identifier and the target configuration information from the received configuration information update instruction.
  • the scheduling server queries the configuration file corresponding to the pre-configured configuration information identifier according to the target task identifier, and determines the configuration information identifier that matches the target configuration information identifier from the queried configuration information identifiers.
  • the scheduling server queries the configuration information to be updated in the configuration file according to the configuration information identifier matching the target configuration information identifier, and updates the queried configuration information to be updated to the target configuration information.
  • the scheduling server respectively matches the configuration information identifiers queried according to the target task identifiers with the target configuration information identifiers.
  • the corresponding matching results of the multiple configuration information identifiers are all matching failures, it indicates that there is no configuration information to be updated corresponding to the target configuration information identifier in the configuration file, and the scheduling server combines the target configuration information and the corresponding target task identifier, And the target configuration information identifies the corresponding configuration into the configuration file.
  • the corresponding configuration information update operation when receiving the received configuration information update instruction sent by the terminal, the corresponding configuration information update operation is triggered according to the received configuration information update instruction, so that when performing the corresponding task scheduling operation according to the task scheduling instruction, the configuration Querying the corresponding configuration information in the file improves the efficiency of task scheduling.
  • it is used to trigger the configuration information update instruction through the user operation interface provided by the terminal, which improves the configuration information update efficiency.
  • a task scheduling method is provided.
  • the method specifically includes the following steps:
  • S310 Query scheduling configuration information corresponding to the task identifier in the configuration file according to the task identifier; the scheduling configuration information is pre-configured in the configuration file; the scheduling configuration information is information for scheduling the task to be executed.
  • S312 Determine a processing server for executing the task to be executed according to the scheduling configuration information.
  • S314 Generate a task execution instruction corresponding to the task identifier and send it to the processing server.
  • S316 Receive task execution status information fed back by the processing server for the task execution instruction.
  • S318 Send the task execution status information to the terminal, so as to display the task execution status information on the task execution status display page through the terminal.
  • S326 Determine an alarm server for pushing alarm information according to the alarm configuration information.
  • the corresponding task scheduling operation when a task scheduling instruction sent by the terminal is received or a preset trigger time that matches the current system time is detected, the corresponding task scheduling operation can be triggered, which improves the schedulability of the task and improves the task Scheduling efficiency.
  • the task execution status information corresponding to the processing server feedback can be sent to the terminal for display, so that the task execution status can be intuitively understood; similarly, during the execution of the task scheduling operation, according to the processing
  • the prompt information corresponding to the abnormal task execution feedback corresponding to the server triggers the corresponding alarm process, so as to promptly understand and solve the task to be executed with abnormal execution.
  • steps in the flowcharts of FIGS. 2-3 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in another order. Moreover, at least a part of the steps in FIG. 2-3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The execution order of is not necessarily sequential, but may be executed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • a task scheduling apparatus 400 including: an acquisition module 402, a query module 404, a determination module 406, and a scheduling module 408, where:
  • the obtaining module 402 is configured to obtain the task identifier of the task to be executed according to the task scheduling instruction when receiving the task scheduling instruction sent by the terminal.
  • the query module 404 is used to query scheduling configuration information corresponding to the task identifier in the configuration file according to the task identifier; the scheduling configuration information is pre-configured in the configuration file; the scheduling configuration information is information used to schedule the task to be executed.
  • the determining module 406 is configured to determine the processing server for executing the task to be executed according to the scheduling configuration information.
  • the scheduling module 408 is used to generate a task execution instruction corresponding to the task identifier and send it to the processing server.
  • the task scheduling apparatus 400 further includes: a polling module 410;
  • the polling module 410 is used to poll the preset trigger time corresponding to the pre-configured task identifier in the configuration file according to a preset period when the task scheduling instruction sent by the terminal is not received; the preset trigger time is performed with the current system time Matching; when the matching is successful, the pre-configured task ID is determined as the task ID of the task to be executed.
  • the task scheduling apparatus 400 further includes: a login module 412;
  • the login module 412 is used to receive the account login request sent by the terminal; determine the login account and login password corresponding to the account login request; send the login account and login password to the account management server for authentication; receive the authentication prompt corresponding to the account management server feedback Information; when the authentication prompt message indicates that the authentication is passed, the account login operation is performed.
  • the scheduling module 408 is also used to query the corresponding task dependency relationship in the configuration file according to the task identifier; construct the task dependency graph according to the task identifier and the task dependency relationship; The relationship graph is sent to the terminal to display the task dependency graph on the task dependency relationship display page through the terminal.
  • the scheduling module 408 is also used to receive the task execution status information fed back by the processing server for the task execution instruction; send the task execution status information to the terminal to display the task execution on the task execution status display page through the terminal status information.
  • the scheduling module 408 is further configured to receive prompt information corresponding to the task execution instruction of the processing server; when the prompt information indicates that the task execution is abnormal, trigger the generation of alarm information; query the configuration file for the task ID Alarm configuration information; determine the alarm server for pushing alarm information based on the alarm configuration information; send the alarm information to the alarm server.
  • the task scheduling apparatus 400 further includes: an update module 414;
  • the update module 414 is used to receive the configuration information update instruction sent by the terminal; extract the target task identifier, target configuration information identifier and target configuration information from the configuration information update instruction; query in the configuration file according to the target task identifier and target configuration information identifier Configuration information to be updated; the configuration information to be updated is correspondingly updated according to the target configuration information.
  • Each module in the above task scheduling apparatus may be implemented in whole or in part by software, hardware, or a combination thereof.
  • the above modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 6.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the database of the computer device is used to store configuration files.
  • the network interface of the computer device is used to communicate with external terminals through a network connection.
  • the computer readable instructions are executed by the processor to implement a task scheduling method.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the specific computer equipment may Include more or less components than shown in the figure, or combine certain components, or have a different arrangement of components.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors implement any one of the applications The steps of the task scheduling method provided in the embodiments.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to implement any one of the embodiments of the present application The steps of the task scheduling method provided.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain (Synchlink) DRAM
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种任务调度方法,包括:当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。

Description

任务调度方法、装置、计算机设备和存储介质
本申请要求于2019年01月04日提交中国专利局,申请号为2019100077082,申请名称为“任务调度方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种任务调度方法、装置、计算机设备和存储介质。
背景技术
随着计算机技术的发展,越来越多的批量任务需要处理,目前通常都是在处理服务器的数据库或者配置文件中预先配置各批量任务所对应的配置信息,比如批量任务的预设触发时间。在当前系统时间达到预设触发时间时,处理服务器触发与该预设触发时间对应的批量任务。
然而,发明人意识到,当需要更改批量任务的触发时间时,需要更改该批量任务对应的配置信息,从而需要对应更新数据库或者配置文件,由此降低了批量任务的可调度性,存在任务调度效率低的问题。
发明内容
根据本申请公开的各种实施例,提供一种任务调度方法、装置、计算机设备和存储介质。
一种任务调度方法包括:
当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;
根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及
生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
一种任务调度装置包括:
获取模块,用于当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
查询模块,用于根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度 配置信息是用于对所述待执行任务进行调度的信息;
确定模块,用于根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及
调度模块,用于生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本申请任意一个实施例中提供的任务调度方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器实现本申请任意一个实施例中提供的任务调度方法的步骤。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中任务调度方法的应用场景图。
图2为根据一个或多个实施例中任务调度方法的流程示意图。
图3为另一个实施例中任务调度方法的流程示意图。
图4为根据一个或多个实施例中任务调度装置的框图。
图5为另一个实施例中任务调度装置的框图。
图6为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的任务调度方法,可以应用于如图1所示的应用环境中。终端102和处理服务器106分别通过网络与调度服务器104通过网络进行通信。当接收到终端102发送的任务调度指令时,调度服务器104根据该任务调度 指令对应获取待执行任务的任务标识,根据该任务标识在配置文件中查询预配置的调度配置信息,根据该调度配置信息确定用于执行该待执行任务的处理服务器106,并生成与该任务标识对应的任务执行指令,进而将该任务执行指令发送到处理服务器106。终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,调度服务器104和处理服务器106可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在其中一个实施例中,如图2所示,提供了一种任务调度方法,以该方法应用于图1中的调度服务器为例进行说明,包括以下步骤:
S202,当接收到终端发送的任务调度指令时,根据任务调度指令获取待执行任务的任务标识。
任务调度指令时用于触发任务调度操作的指令。任务调度指令用于指示调度服务器针对指定的待执行任务对应的任务标识执行相应的任务调度操作。待执行任务是指可被执行的任务。待执行任务可以是批量任务,批量任务可以是在预设触发时间定时触发的定时任务。可以理解的是,批量任务可以是指针对不同的入参重复执行相同处理流程的任务。举例说明,假设批量任务是向用户发送催款短信,则可能需要向存在借贷关系的多个用户分别发送相应的催款短信,因而处理服务器在接收到调度服务器针对该批量任务发送的任务执行指令时,会分别获取该多个用户各自对应的借贷信息,并根据借贷信息分别向相应用户所对应的用户终端发送催款短信。任务标识用于唯一标识待执行任务。可以理解的是,任务标识可用于唯一标识批量任务。
具体地,终端实时检测用户在用户操作界面上的预设触发操作。当检测到预设触发操作时,终端根据该预设触发操作生成相应的任务调度指令,并将所生成的任务调度指令发送至调度服务器。当接收到终端发送的任务调度指令时,调度服务器根据该任务调度指令从终端对应获取待执行任务的任务标识。
在其中一个实施例中,终端根据所检测到的预设触发操作对应获取待执行任务的任务标识,根据所获取到的任务标识生成相应的任务调度指令,并将该任务调度指令发送至任务调度服务器。任务调度服务器解析所接收到的任务调度指令,以从该任务调度指令中提取出待执行任务对应的任务标识。
在其中一个实施例中,终端将任务调度指令基于HTTP(Hyper Text Transfer Protocol,超文本传输协议)或HTTPS(Hyper Text Transfer Protocol over Secure Socket Layer,安全套接字层超文本传输协议)传输协议发送至调度服务器。
S204,根据任务标识在配置文件中查询与任务标识对应的调度配置信息; 调度配置信息预配置于配置文件中;调度配置信息是用于对待执行任务进行调度的信息。
配置文件中预配置有任务标识与相应调度配置信息之间的对应关系。调度配置信息是预先配置的用于对待执行任务进行调度的信息。调度配置信息可包括用于执行相应任务标识所对应的待执行任务的处理服务器数量,还可包括用于执行该待执行任务的一个或多个处理服务器所对应的处理服务器标识。可以理解的是,调度配置信息可以指定可用于执行相应待执行任务的处理服务器数量,还可以指定可用于执行该待执行任务的一个或多个处理服务器。换而言之,调度配置信息可指定相应待执行任务是在一个还是多个处理服务器上执行,也可具体指定用于执行该待执行任务的一个或多个处理服务器,还可指定可用于执行该待执行任务的一个或多个处理服务器(即候选处理服务器),具体依据调度信息配置过程中针对相应任务标识对应配置的调度配置信息而定。
具体地,当获取到与任务调度指令对应的任务标识时,服务器在数据库中查询预配置的配置文件,并根据所获取到的任务标识在该配置文件中查询与该任务标识对应的调度配置信息。
在其中一个实施例中,服务器可在数据库中针对每个任务标识分别配置相应的配置文件,并在该配置文件中配置与相应任务标识对应的调度配置信息。当获取到与任务调度指令对应的任务标识时,服务器根据该任务标识在数据库中对应查询预配置的配置文件,进而从该配置文件中对应获取预配置的调度配置信息,将该调度配置信息作为根据该任务标识对应查询到的调度配置信息。
S206,根据调度配置信息确定用于执行待执行任务的处理服务器。
具体地,调度服务器根据针对任务标识所查询到的调度配置信息,确定用于执行与该任务标识对应的待执行任务的处理服务器数量,并确定可用于执行该待执行任务的一个或多个候选处理服务器,进而从该一个或多个候选处理服务器中确定用于执行该待执行任务的处理服务器。调度服务器从一个或多个候选处理服务器中所确定的用于执行待执行任务的处理服务器的数量,与根据调度配置信息对应确定的用于执行该待执行任务的处理服务器数量相等。
在其中一个实施例中,调度服务器根据调度配置信息确定用于执行待执行任务的处理服务器数量,以及可用于执行该待执行任务的一个或多个候选处理服务器所对应的候选处理服务器标识。当用于执行待执行任务的处理服务器数量,与可用于执行该待执行任务的候选处理服务器的数量相等时,调度服务器将根据该调度配置信息确定的一个或多个候选处理服务器标识所对 应的候选处理服务器,确定为用于执行该待执行任务的一个或多个处理服务器。
进一步地,当用于执行待执行任务的处理服务器数量小于可用于执行该待执行任务的候选处理服务器的数量时,调度服务器从根据调度配置信息所确定的多个候选处理服务器标识中,选取预设数量的候选处理服务器标识,并将该预设数量的候选处理服务器标识所对应的候选处理服务器确定为用于执行待执行任务的处理服务器。预设数量与用于执行待执行任务的处理服务器数量相等。
举例说明,假设调度配置信息中指定了可用于执行待执行任务X的3个候选处理服务器a、b和c。进一步地,若指定了用于执行待执行任务X的处理服务器数量为3个,调度服务器则将该3个候选处理服务器a、b和c确定为用于执行待执行任务X的处理服务器;若指定了用于执行待执行任务X的处理服务器数量为1个或2个,调度服务器则从该3个候选处理服务器a、b和c中选择1个或2个候选处理服务器,并将所选择的候选处理服务器确定为用于执行待执行任务X的处理服务器。
S208,生成与任务标识对应的任务执行指令并发送至处理服务器。
任务执行指令是用于触发针对待执行任务的任务执行操作的指令。任务执行指令用于指示处理服务器根据指定的任务标识查询相应的任务执行函数,并调用该任务执行函数以实现针对相应待执行任务的任务执行操作。
具体地,服务器根据与任务调度指令对应的任务标识生成相应的任务执行指令,并将所生成的任务执行指令发送至根据调度配置信息确定的处理服务器。处理服务器从所接收到的任务执行指令中提取出待执行任务对应的任务标识,根据该任务标识查询相应的任务执行函数和作为该任务执行函数的入参的各参数信息,并根据各参数信息分别调用该任务执行函数,以实现针对任务执行指令所对应的待执行任务的任务执行操作。
举例说明,假设与任务执行指令对应的待执行任务为向用户发送催款短信。处理服务器根据任务执行指令获取待执行任务的任务标识,并根据该任务标识查询用于向用户发送催款短信的任务执行函数,以及所需发送催款短信的目标用户标识,进而根据目标用户标识查询相应的借贷信息,将所查询到的借贷信息作为该任务执行函数的入参,并根据该借贷信息调用该任务执行函数,以向目标用户标识对应的用户终端发送催款短信,目标用户标识可以是多个,处理服务器针对每个目标用户标识分别执行上述操作。
在其中一个实施例中,当根据调度配置信息对应确定的用于执行待执行任务的处理服务器有多个时,调度服务器将针对任务标识所生成的任务执行指令分别发送至所确定的该多个处理服务器,以便于该多个处理服务器根据 并行的执行该待执行任务,提高了任务执行效率。以上述向用户发送催款短信为例,假设需要向100个目标用户发送催款短信,可通过1个处理服务器分别向该100个目标用户发送催款短信,也可通过3个处理服务器并行的向该100个目标用户发送催款短信,比如3个处理服务器a、b和c,分别向该100个目标用户中的30个、30个和40个目标用户分别发送催款短信,提高了催款短信的发送效率。
上述任务调度方法,当接收到终端发送的任务调度指令时,根据该任务调度指令确定待执行任务的任务标识,根据该任务标识在配置文件中查询预配置的调度配置信息,进而根据该调度配置信息执行相应的任务调度操作。这样,根据终端发送的任务调度指令实时的触发相应的任务调度操作,提高了任务调度效率。进一步地,根据配置文件中预配置的调度配置信息,可快速确定用于执行与任务调度执行对应的待执行任务的处理服务器,进而生成相应的任务执行指令并发送至该处理服务器,以通过该处理服务器执行与任务调度指令对应的待执行任务,实现了待执行任务的有效调度,进一步提高了任务调度效率。
在其中一个实施例中,上述任务调度方法还包括:当没有接收到终端发送的任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;将预设触发时间与当前系统时间进行匹配;当匹配成功时,将预配置的任务标识确定为待执行任务的任务标识。
预设周期是预先设定的相邻两次执行同一操作的时间间隔。预设周期具体可以是调度服务器相邻两次轮询配置文件的时间间隔。预设周期可以根据实际情况自定义,比如1秒。轮询是指按照预设周期重复执行针对配置文件的查询操作。预设触发时间是预先设定的用于触发针对待执行任务的任务调度操作的时间,也即用于触发针对待执行任务的任务执行操作的时间。预设触发时间可以是具体的时间点,比如每个月的第一天、每周的最后一天、每天的晚上九点或每个月的最后一天的早上十点整。
具体地,当没有接收到终端发送的任务调度指令时,调度服务器按照预设周期轮询配置文件中预配置的任务标识所对应的预设触发时间。当轮询配置文件中预配置的预设触发时间时,调度服务器获取当前系统时间,并将所获取到的当前系统时间与从配置文件中轮询到的预设触发时间进行匹配。当匹配成功时,表明当前系统时间达到预配置的任务标识所对应的预设触发时间,调度服务器将与该任务标识对应的任务确定为待执行任务,也即将该任务标识确定为待执行任务的任务标识,并根据该任务标识触发相应的任务调度操作。
在其中一个实施例中,配置文件中预配置有多个任务标识各自对应的预 设触发时间。在轮询配置文件中预配置的多个任务标识各自对应的预设触发时间时,调度服务器将该多个预设触发时间分别与当前系统时间进行匹配。当该多个预设触发时间中存在与当前系统时间匹配成功的预设触发时间时,调度服务器将匹配成功的预设触发时间所对应的任务标识确定为待执行的任务标识。可以理解的是,当存在多个与当前系统时间匹配成功的预设触发时间时,调度服务器将该多个匹配成功的预设触发时间各自对应的任务标识所对应的任务分别确定为待执行任务,即确定多个待执行任务。
上述实施例中,在没有接收到终端发送的任务调度指令时,通过轮询预配置的预设触发时间的方式触发相应的任务调度操作,即根据终端的任务调度指令或预配置的预设触发时间均可触发相应的任务调度操作,保证了任务的可调度性,提高了任务调度效率。
在其中一个实施例中,步骤S202之前,上述任务调度方法还包括:接收终端发送的账户登录请求;确定与账户登录请求对应的登录账户和登录密码;将登录账户和登录密码发送至账户管理服务器进行认证;接收账户管理服务器对应反馈的认证提示信息;当认证提示信息表示认证通过时,执行账户登录操作。
账户登录请求是用于触发账户登录操作的请求。账户登录请求中可携带有待登录的登录账户和相应的登录密码。认证提示信息用于表征针对登录账户和登录密码进行认证的认证结果。
具体地,当检测到用户在用户操作界面触发的登录触发操作时,终端根据所检测到的登录触发操作获取相应的登录账户和登录密码,根据该登录账户和登录密码生成相应的账户登录请求,并将所生成的账户登录请求发送至调度服务器。调度服务器从所接收到的账户登录请求中提取出登录账户和登录密码,并将所生成的登录账户和登录密码发送至账户管理服务器进行认证。账户管理服务器根据所接收到的登录账户,在数据库中对应查询预存储的预设登录账户和预设登录密码,根据所查询到的预设登录账户和预设登录密码对所接收到的登录账户和登录密码进行认证,并根据认证结果生成相应的认证提示信息,进而将该认证提示信息对应反馈至调度服务器。当接收到账户管理服务器针对登录账户和登录密码对应反馈的、表示认证通过的认证提示信息时,调度服务器根据认证通过的登录账户和登录密码执行相应的账户登录操作,以实现针对账户登录请求的账户登录流程。
在其中一个实施例中,账户管理服务器根据所接收到的登录账户查询与该登录账户对应的账户有效状态。当账户有效状态为有效时,账户管理服务器则根据该登录账户对应查询预存储的预设登录密码,并将所查询到的预设登录密码和相应的账户密码进行匹配。当匹配成功时,表明根据账户登录请 求所获取到的登录密码与预存储的预设登录密码一致,也即表明针对登录密码的认证结果为认证通过,账户管理服务器生成表示认证通过的认证提示信息,并将该认证提示信息对应反馈至账户管理服务器。当匹配失败时,表明所获取到的登录密码与预存储的预设登录密码不一致,也即表明针对登录密码的认证结果为认证不通过,账户管理服务器生成表示认证不通过的认证提示信息,并将该认证提示信息对应反馈至账户管理服务器。
在其中一个实施例中,账户管理服务器上部署有UM(User Management,用户管理)账户系统,数据库中预存储有多于一个的UM账号(预设登录账户)和密码(预设登录密码)。账户管理服务器根据所接收到的登录账户在数据库中查询相匹配的预设登录账户,并根据匹配成功的预设登录账户执行上述针对登录账户和登录密码的认证操作。
在其中一个实施例中,当接收到表示认证通过的认证提示信息时,调度服务器则判定完成账户登录流程,并将登录成功的提示信息发送至终端,以使得终端向用户展示相应的用户操作界面,以便于用户能够通过该用户操作界面在终端触发相应的任务调度指令。
上述实施例中,借助于账户管理服务器对账户登录请求所对应的登录账户和登录密码进行认证,并当接收到表示认证通过的认证提示信息时,执行相应的账户登录操作,以便于用户能够通过登录成功的账户在终端手动触发相应的任务调度操作,提高了任务调度效率。这样,设置用户权限,具有相应用户权限的用户可手动触发任务调度指令,保证了任务的有效调度。
在其中一个实施例中,任务标识有多个;根据任务调度指令获取待执行任务的任务标识之后,上述任务调度方法还包括:根据任务标识在配置文件中查询相应的任务依赖关系;根据任务标识和任务依赖关系构建任务依赖关系图;将任务依赖关系图发送至终端,以通过终端在任务依赖关系展示页面中展示任务依赖关系图。
任务依赖关系是指触发针对待执行任务的任务调度操作的依赖关系,比如同时触发多个待执行任务各自对应的任务调度操作,或者按照预设先后顺序依次触发该多个待执行任务各自对应的任务调度操作(任务依赖调度,后一个任务调度操作的触发依赖于前一个任务调度操作的完成)。举例说明,假设存在3个待执行任务A、B和C,待执行任务A对应的任务调度操作由终端的任务调度指令或者预配置的预设触发时间触发,当针对待执行任务A的任务调度操作执行完毕时(待执行任务A对应的任务执行操作执行完毕时),则同时触发分别针对待执行任务B和C的任务调度操作。可以理解的是,待执行任务B和C各自对应的任务调度操作为同时触发,而待执行任务A和B各自对应的任务调度操作为任务依赖触发。
任务依赖关系图是由存在任务依赖关系的多个待执行任务各自对应的任务标识,以及该多个待执行任务相互之间的任务依赖关系构成的依赖关系图。任务依赖关系图可以是将该多个任务标识和相应的任务依赖关系以图像的形式进行展示,以便于直观了解该多个待执行任务之间的依赖关系。任务依赖关系图具体可以是树状图、网状图、或其他能够直观展示任务依赖关系的图示。
具体地,调度服务器中预配置有多个任务标识各自对应的任务依赖关系。当从所接收到的任务调度指令提取出多个待执行任务各自对应的任务标识时,调度服务器根据该多个任务标识分别在配置文件中查询相应的任务依赖关系。调度服务器对所查询到的多个任务依赖关系进行合并与分析,获得该多个任务标识相互之间所对应的任务依赖关系。调度服务器根据任务调度指令所对应的多个任务标识和该多个任务标识相互之间的任务依赖关系,构建与该任务调度指令对应的任务依赖关系图,并将所构建的任务依赖关系图发送至终端。终端将所接收到的任务依赖关系图在任务依赖关系展示页面中进行展示。
举例说明,假设存在3个待执行任务A、B和C,各自对应的任务标识为a、b和c,根据任务标识a在配置文件查询到该任务标识a和任务标识c,以及任务标识b分别存在任务依赖触发的任务依赖关系;根据任务标识b在配置文件查询到该任务标识b与任务标识a存在任务依赖触发的任务依赖关系,并与任务标识c存在同时触发的任务依赖关系;根据任务标识c在配置文件查询到该任务标识c与任务标识a存在任务依赖触发的任务依赖关系,并与任务标识b存在同时触发的任务依赖关系;通过对所查询到的任务依赖关系进行分析与合并,可确定任务标识b和任务标识c分别与任务标识a存在任务依赖触发的任务依赖关系,任务标识b和任务标识c存在同时触发的任务依赖关系。
上述实施例中,根据任务调度指令获取存在任务依赖关系的多个待执行任务所对应的任务依赖关系,构建相应的任务依赖关系图,并通过终端在任务依赖关系展示页面进行展示,以便于能够直观了解待执行任务之间的依赖关系。
在其中一个实施例中,步骤S208之后,上述任务调度方法还包括:接收处理服务器针对任务执行指令反馈的任务执行状态信息;将任务执行状态信息发送至终端,以通过终端在任务执行状态展示页面中展示任务执行状态信息。
任务执行状态信息是用于表征待执行任务的执行状态的信息。任务执行状态信息包括任务执行开始、执行中、执行成功或执行失败等。
具体地,处理服务器在针对与任务执行指令对应的待执行任务执行相应的任务执行操作时,获取相应的任务执行状态信息,并将所获取到的任务执行状态信息对应反馈至调度服务器。调度服务器将所接收到的任务执行状态信息发送至终端,以通过终端在任务执行状态展示页面中展示该任务执行状态信息。
在其中一个实施例中,处理服务器根据任务执行指令获取到待执行任务的任务标识,并针对根据该任务标识触发相应的任务执行操作时,向调度服务器对应反馈表示任务执行开始的任务执行状态信息。处理服务器在执行针对待执行任务的任务执行操作过程中,向调度服务器反馈表示任务执行中的任务执行状态信息。当判定该任务执行操作成功执行完毕时,处理服务器向调度服务器反馈表示任务执行成功的任务执行状态信息。当判定该任务执行操作执行失败时,处理服务器向调度服务器反馈表示任务执行失败的任务执行状态信息。调度服务器将处理服务器反馈的任务执行状态信息实时发送至终端,以便于及时更新终端在任务执行状态展示页面中所展示的任务执行状态信息。
上述实施例中,接收处理服务器针对任务执行指令对应反馈的任务执行状态信息,并实时同步至终端进行展示,以便于能够直观的了解任务执行状态。
在其中一个实施例中,步骤S208之后,上述任务调度方法还包括:接收处理服务器针对任务执行指令对应反馈的提示信息;当提示信息表示任务执行异常时,触发生成告警信息;在配置文件中查询与任务标识对应的告警配置信息;根据告警配置信息确定用于推送告警信息的告警服务器;将告警信息发送至告警服务器。
告警配置信息是用于指定告警方式或告警服务器的配置信息。告警配置信息可包括告警方式,比如邮件告警或短信告警等,还可包括用于推送告警信息的告警服务器所对应的告警服务器标识。
具体地,处理服务器在执行针对待执行任务的任务执行操作过程中,实时检测该任务执行操作对应的任务执行情况,当判定任务执行异常时,处理服务器向调度服务器对应反馈表示任务执行异常的提示信息。当接收到表示任务执行异常的提示信息时,调度服务器根据该提示信息触发生成相应的告警信息,并根据相应的任务标识在配置文件中查询与该任务标识对应的告警配置信息。调度服务器根据告警配置信息确定用于推送告警信息的告警服务器所对应的告警服务器标识,并根据该告警服务器标识将该告警信息发送至相应的告警服务器,以通过该告警服务器将该告警信息推送至终端。
在其中一个实施例中,调度服务器根据告警配置信息确定告警方式,根 据告警方式确定用于推送相应告警信息的告警服务器,并将该告警信息发送至所确定的告警服务器。
在其中一个实施例中,调度服务器根据告警配置信息确定相应的告警方式和用于推送告警信息的告警服务器所对应的告警服务器标识,并将所确定的告警方式和所生成的告警信息发送至告警服务器标识所对应的告警服务器。告警服务器按照所接收到的告警方式将相应的告警信息推送至终端。终端可以是业务员终端或开发人员终端。
上述实施例中,当接收到表示任务执行异常的提示信息时,触发生成告警信息并通过告警服务器推送至终端,以便于业务员或开发人员在接收到告警信息时,可通过终端的用户操作界面查看执行异常的任务所对应的异常信息。
在其中一个实施例中,上述任务调度方法还包括:接收所述终端发送的配置信息更新指令;从配置信息更新指令中提取出目标任务标识、目标配置信息标识和目标配置信息;根据目标任务标识和目标配置信息标识在配置文件中查询待更新的配置信息;根据目标配置信息对应更新待更新的配置信息。
配置信息更新指令是用于触发配置信息更新操作的指令。目标任务标识是待更新相应配置信息的任务标识,目标配置信息标识是与待更新的配置信息对应的配置信息标识,目标配置信息是配置信息更新指令所指定的、与目标任务标识对应的更新后的配置信息。
具体地,当检测到用户在用户操作界面触发的配置信息更新触发操作时,终端根据所检测到的配置信息更新触发操作生成相应的配置信息更新指令,并将所生成的配置信息更新指令发送至调度服务器。调度服务器从所接收到的配置信息更新指令中提取出目标任务标识、目标配置信息标识和目标配置信息。调度服务器根据目标任务标识在配置文件中对应查询预配置的配置信息标识,从所查询到的配置信息标识中确定与目标配置信息标识相匹配的配置信息标识。调度服务器根据与目标配置信息标识相匹配的配置信息标识,在配置文件中对应查询待更新的配置信息,并将所查询到的待更新的配置信息更新为目标配置信息。
在其中一个实施例中,调度服务器将根据目标任务标识对应查询到的配置信息标识分别与目标配置信息标识进行匹配。当该多个配置信息标识各自对应的匹配结果均为匹配失败时,表明配置文件中不存在与目标配置信息标识对应的待更新的配置信息,调度服务器将目标配置信息和相应的目标任务标识,以及目标配置信息标识对应配置到配置文件中。
上述实施例中,当接收到终端发送的接收配置信息更新指令,根据该接收配置信息更新指令触发相应的配置信息更新操作,以便于在根据任务调度 指令执行相应的任务调度操作时,可从配置文件中查询相应的配置信息,提高了任务调度效率。此外,用于可通过终端提供的用户操作界面触发该配置信息更新指令,提高了配置信息更新效率。
如图3所示,在其中一个实施例中,提供了一种任务调度方法,该方法具体包括以下步骤:
S302,当接收到终端发送的任务调度指令时,根据任务调度指令获取待执行任务的任务标识。
S304,当没有接收到终端发送的任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间。
S306,将预设触发时间与当前系统时间进行匹配。
S308,当匹配成功时,将预配置的任务标识确定为待执行任务的任务标识。
S310,根据任务标识在配置文件中查询与任务标识对应的调度配置信息;调度配置信息预配置于配置文件中;调度配置信息是用于对待执行任务进行调度的信息。
S312,根据调度配置信息确定用于执行待执行任务的处理服务器。
S314,生成与任务标识对应的任务执行指令并发送至处理服务器。
S316,接收处理服务器针对任务执行指令反馈的任务执行状态信息。
S318,将任务执行状态信息发送至终端,以通过终端在任务执行状态展示页面中展示任务执行状态信息。
S320,接收处理服务器针对任务执行指令对应反馈的提示信息。
S322,当提示信息表示任务执行异常时,触发生成告警信息。
S324,在配置文件中查询与任务标识对应的告警配置信息。
S326,根据告警配置信息确定用于推送告警信息的告警服务器。
S328,将告警信息发送至告警服务器。
上述实施例中,在接收到终端发送的任务调度指令或检测到与当前系统时间相匹配的预设触发时间时,均可触发相应的任务调度操作,提高了任务的可调度性,提高了任务调度效率。在任务调度操作的执行过程中,可将处理服务器对应反馈的任务执行状态信息发送至终端进行展示,以便于直观了解该任务执行状态;类似地,在任务调度操作的执行过程中,可根据处理服务器对应反馈的表示任务执行异常的提示信息触发相应告警流程,以便于及时了解并解决执行异常的待执行任务。
应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其 它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在其中一个实施例中,如图4所示,提供了一种任务调度装置400,包括:获取模块402、查询模块404、确定模块406和调度模块408,其中:
获取模块402,用于当接收到终端发送的任务调度指令时,根据任务调度指令获取待执行任务的任务标识。
查询模块404,用于根据任务标识在配置文件中查询与任务标识对应的调度配置信息;调度配置信息预配置于配置文件中;调度配置信息是用于对待执行任务进行调度的信息。
确定模块406,用于根据调度配置信息确定用于执行待执行任务的处理服务器。
调度模块408,用于生成与任务标识对应的任务执行指令并发送至处理服务器。
如图5所示,在其中一个实施例中,任务调度装置400还包括:轮询模块410;
轮询模块410,用于当没有接收到终端发送的任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;将预设触发时间与当前系统时间进行匹配;当匹配成功时,将预配置的任务标识确定为待执行任务的任务标识。
在其中一个实施例中,任务调度装置400还包括:登录模块412;
登录模块412,用于接收终端发送的账户登录请求;确定与账户登录请求对应的登录账户和登录密码;将登录账户和登录密码发送至账户管理服务器进行认证;接收账户管理服务器对应反馈的认证提示信息;当认证提示信息表示认证通过时,执行账户登录操作。
在其中一个实施例中,任务标识有多个;调度模块408,还用于根据任务标识在配置文件中查询相应的任务依赖关系;根据任务标识和任务依赖关系构建任务依赖关系图;将任务依赖关系图发送至终端,以通过终端在任务依赖关系展示页面中展示任务依赖关系图。
在其中一个实施例中,调度模块408,还用于接收处理服务器针对任务执行指令反馈的任务执行状态信息;将任务执行状态信息发送至终端,以通过终端在任务执行状态展示页面中展示任务执行状态信息。
在其中一个实施例中,调度模块408,还用于接收处理服务器针对任务执行指令对应反馈的提示信息;当提示信息表示任务执行异常时,触发生成告警信息;在配置文件中查询与任务标识对应的告警配置信息;根据告警配置信息确定用于推送告警信息的告警服务器;将告警信息发送至告警服务器。
在其中一个实施例中,任务调度装置400还包括:更新模块414;
更新模块414,用于接收终端发送的配置信息更新指令;从配置信息更新指令中提取出目标任务标识、目标配置信息标识和目标配置信息;根据目标任务标识和目标配置信息标识在配置文件中查询待更新的配置信息;根据目标配置信息对应更新待更新的配置信息。
关于任务调度装置的具体限定可以参见上文中对于任务调度方法的限定,在此不再赘述。上述任务调度装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储配置文件。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种任务调度方法。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的任务调度方法的步骤。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的任务调度方法的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种任务调度方法,包括:
    当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
    根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;
    根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当没有接收到所述终端发送的所述任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;
    将所述预设触发时间与当前系统时间进行匹配;及
    当匹配成功时,将预配置的所述任务标识确定为待执行任务的任务标识。
  3. 根据权利要求1所述的方法,其特征在于,所述当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识之前,所述方法还包括:
    接收所述终端发送的账户登录请求;
    确定与所述账户登录请求对应的登录账户和登录密码;
    将所述登录账户和所述登录密码发送至账户管理服务器进行认证;
    接收所述账户管理服务器对应反馈的认证提示信息;及
    当所述认证提示信息表示认证通过时,执行账户登录操作。
  4. 根据权利要求1所述的方法,其特征在于,所述任务标识有多个;所述根据所述任务调度指令获取待执行任务的任务标识之后,所述方法还包括:
    根据所述任务标识在所述配置文件中查询相应的任务依赖关系;
    根据所述任务标识和所述任务依赖关系构建任务依赖关系图;及
    将所述任务依赖关系图发送至所述终端,以通过所述终端在任务依赖关系展示页面中展示所述任务依赖关系图。
  5. 根据权利要求1所述的方法,其特征在于,所述生成与所述任务标识对应的任务执行指令并发送至所述处理服务器之后,所述方法还包括:
    接收所述处理服务器针对所述任务执行指令反馈的任务执行状态信息;及
    将所述任务执行状态信息发送至所述终端,以通过所述终端在任务执行状态展示页面中展示所述任务执行状态信息。
  6. 根据权利要求1所述的方法,其特征在于,所述生成与所述任务标识 对应的任务执行指令并发送至所述处理服务器之后,所述方法还包括:
    接收所述处理服务器针对所述任务执行指令对应反馈的提示信息;
    当所述提示信息表示任务执行异常时,触发生成告警信息;
    在所述配置文件中查询与所述任务标识对应的告警配置信息;
    根据所述告警配置信息确定用于推送所述告警信息的告警服务器;及
    将所述告警信息发送至所述告警服务器。
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述方法还包括:
    接收所述终端发送的配置信息更新指令;
    从所述配置信息更新指令中提取出目标任务标识、目标配置信息标识和目标配置信息;
    根据所述目标任务标识和所述目标配置信息标识在所述配置文件中查询待更新的配置信息;及
    根据所述目标配置信息对应更新所述待更新的配置信息。
  8. 一种任务调度装置,包括:
    获取模块,用于当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
    查询模块,用于根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;
    确定模块,用于根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及
    调度模块,用于生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:
    轮询模块,用于当没有接收到所述终端发送的所述任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;将所述预设触发时间与当前系统时间进行匹配;及当匹配成功时,将预配置的所述任务标识确定为待执行任务的任务标识。
  10. 根据权利要求8所述的装置,其特征在于,所述装置还包括:
    登录模块,用于接收所述终端发送的账户登录请求;确定与所述账户登录请求对应的登录账户和登录密码;将所述登录账户和所述登录密码发送至账户管理服务器进行认证;接收所述账户管理服务器对应反馈的认证提示信息;及当所述认证提示信息表示认证通过时,执行账户登录操作。
  11. 根据权利要求8所述的装置,其特征在于,所述任务标识有多个; 所述调度模块还用于根据所述任务标识在所述配置文件中查询相应的任务依赖关系;根据所述任务标识和所述任务依赖关系构建任务依赖关系图;及将所述任务依赖关系图发送至所述终端,以通过所述终端在任务依赖关系展示页面中展示所述任务依赖关系图。
  12. 根据权利要求8所述的装置,其特征在于,所述调度模块还用于接收所述处理服务器针对所述任务执行指令反馈的任务执行状态信息;及将所述任务执行状态信息发送至所述终端,以通过所述终端在任务执行状态展示页面中展示所述任务执行状态信息。
  13. 根据权利要求8所述的装置,其特征在于,所述调度模块还用于接收所述处理服务器针对所述任务执行指令对应反馈的提示信息;当所述提示信息表示任务执行异常时,触发生成告警信息;在所述配置文件中查询与所述任务标识对应的告警配置信息;根据所述告警配置信息确定用于推送所述告警信息的告警服务器;及将所述告警信息发送至所述告警服务器。
  14. 根据权利要求8至13任一项所述的装置,其特征在于,所述装置还包括:
    更新模块,用于接收所述终端发送的配置信息更新指令;从所述配置信息更新指令中提取出目标任务标识、目标配置信息标识和目标配置信息;根据所述目标任务标识和所述目标配置信息标识在所述配置文件中查询待更新的配置信息;及根据所述目标配置信息对应更新所述待更新的配置信息。
  15. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
    根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;
    根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
  16. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    当没有接收到所述终端发送的所述任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;
    将所述预设触发时间与当前系统时间进行匹配;及
    当匹配成功时,将预配置的所述任务标识确定为待执行任务的任务标识。
  17. 根据权利要求15所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识之前,还执行以下步骤:
    接收所述终端发送的账户登录请求;
    确定与所述账户登录请求对应的登录账户和登录密码;
    将所述登录账户和所述登录密码发送至账户管理服务器进行认证;
    接收所述账户管理服务器对应反馈的认证提示信息;及
    当所述认证提示信息表示认证通过时,执行账户登录操作。
  18. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识;
    根据所述任务标识在配置文件中查询与所述任务标识对应的调度配置信息;所述调度配置信息预配置于所述配置文件中;所述调度配置信息是用于对所述待执行任务进行调度的信息;
    根据所述调度配置信息确定用于执行所述待执行任务的处理服务器;及生成与所述任务标识对应的任务执行指令并发送至所述处理服务器。
  19. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    当没有接收到所述终端发送的所述任务调度指令时,按照预设周期轮询配置文件中预配置的任务标识对应的预设触发时间;
    将所述预设触发时间与当前系统时间进行匹配;及
    当匹配成功时,将预配置的所述任务标识确定为待执行任务的任务标识。
  20. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述当接收到终端发送的任务调度指令时,根据所述任务调度指令获取待执行任务的任务标识之前,,还执行以下步骤:接收所述终端发送的账户登录请求;
    确定与所述账户登录请求对应的登录账户和登录密码;
    将所述登录账户和所述登录密码发送至账户管理服务器进行认证;
    接收所述账户管理服务器对应反馈的认证提示信息;及
    当所述认证提示信息表示认证通过时,执行账户登录操作。
PCT/CN2019/123326 2019-01-04 2019-12-05 任务调度方法、装置、计算机设备和存储介质 WO2020140683A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910007708.2 2019-01-04
CN201910007708.2A CN109743390B (zh) 2019-01-04 2019-01-04 任务调度方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2020140683A1 true WO2020140683A1 (zh) 2020-07-09

Family

ID=66361571

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/123326 WO2020140683A1 (zh) 2019-01-04 2019-12-05 任务调度方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN109743390B (zh)
WO (1) WO2020140683A1 (zh)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897638A (zh) * 2020-07-27 2020-11-06 广州虎牙科技有限公司 分布式任务调度方法及系统
CN112035230A (zh) * 2020-09-01 2020-12-04 中国银行股份有限公司 一种任务调度文件生成方法、装置及存储介质
CN112181654A (zh) * 2020-09-28 2021-01-05 亚信科技(中国)有限公司 任务调度的方法、装置、设备及计算机可读存储介质
CN112256451A (zh) * 2020-10-19 2021-01-22 北京达佳互联信息技术有限公司 定时业务消息生成方法、装置、电子设备及存储介质
CN112256749A (zh) * 2020-09-27 2021-01-22 上海楚腾信息技术有限公司 获取智能化数据报表的方法、系统、终端及存储介质
CN112367205A (zh) * 2020-11-12 2021-02-12 深圳前海微众银行股份有限公司 一种对http调度请求的处理方法及调度系统
CN112506481A (zh) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 业务数据交互方法、装置、计算机设备和存储介质
CN112559158A (zh) * 2020-12-29 2021-03-26 中国人民银行清算总中心 微服务定时任务调度方法及装置
CN112905339A (zh) * 2021-02-08 2021-06-04 中国工商银行股份有限公司 任务调度执行方法、装置及系统
CN113110329A (zh) * 2021-04-14 2021-07-13 深圳赛动生物自动化有限公司 基于干细胞制备的并行操作控制方法、装置、系统及介质
CN113342490A (zh) * 2021-05-31 2021-09-03 北京顶象技术有限公司 一种建模任务调度的执行方法和装置
CN113391902A (zh) * 2021-06-22 2021-09-14 未鲲(上海)科技服务有限公司 一种任务调度方法及设备、存储介质
CN113641474A (zh) * 2021-08-13 2021-11-12 广州虎牙科技有限公司 一种任务调度方法、装置及计算机可读存储介质
CN113641514A (zh) * 2021-07-23 2021-11-12 浙江吉利控股集团有限公司 一种可控的实时任务远程执行系统
CN113656155A (zh) * 2021-07-21 2021-11-16 广州三七互娱科技有限公司 任务处理方法、装置、计算机设备和存储介质
CN113687946A (zh) * 2021-08-19 2021-11-23 海尔数字科技(青岛)有限公司 一种任务管理方法、装置、服务器和存储介质
CN113839783A (zh) * 2021-09-27 2021-12-24 中国工商银行股份有限公司 一种任务处理方法、装置及设备
CN114444080A (zh) * 2020-10-30 2022-05-06 马上消费金融股份有限公司 一种服务器的配置方法和计算机可读存储介质
CN114531477A (zh) * 2022-04-22 2022-05-24 深圳丰尚智慧农牧科技有限公司 功能组件的配置方法、装置、计算机设备和存储介质
CN114584416A (zh) * 2022-02-11 2022-06-03 青岛海尔科技有限公司 一种电器设备控制方法、系统及存储介质
CN114780216A (zh) * 2022-04-18 2022-07-22 湖南长银五八消费金融股份有限公司 任务调度方法、装置、计算机设备和存储介质
CN114924772A (zh) * 2022-07-15 2022-08-19 浙江大华技术股份有限公司 一种算法包的更新方法及设备
CN115018398A (zh) * 2022-08-09 2022-09-06 广东咏声动漫股份有限公司 一种动画项目延期预测方法、装置及系统
CN115816441A (zh) * 2022-10-31 2023-03-21 实时侠智能控制技术有限公司 基于任务描述的机器人控制方法、装置及可读介质
WO2023165622A1 (zh) * 2022-03-04 2023-09-07 上海联影医疗科技股份有限公司 图像重建任务调度方法以及装置
CN117056058A (zh) * 2023-10-11 2023-11-14 国家气象信息中心(中国气象局气象数据中心) 基于状态感知的任务调度方法、系统、设备及存储介质
CN117311950A (zh) * 2023-11-28 2023-12-29 宁德时代新能源科技股份有限公司 任务处理方法、任务处理装置、电子设备及存储介质
CN117539642A (zh) * 2024-01-09 2024-02-09 上海晨钦信息科技服务有限公司 一种信用卡分布式调度平台及调度方法

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743390B (zh) * 2019-01-04 2022-02-22 深圳壹账通智能科技有限公司 任务调度方法、装置、计算机设备和存储介质
CN110134533B (zh) * 2019-05-14 2020-04-28 重庆天蓬网络有限公司 一种可批量调度数据的系统及方法
CN112116481A (zh) * 2019-06-21 2020-12-22 腾讯科技(深圳)有限公司 收益入账处理方法、装置、告警服务器以及存储介质
CN111190725A (zh) * 2019-08-09 2020-05-22 腾讯科技(深圳)有限公司 任务处理方法、装置、存储介质及服务器
CN110532077B (zh) * 2019-08-22 2021-12-07 腾讯科技(深圳)有限公司 任务处理方法、装置及存储介质
CN110727526B (zh) * 2019-09-09 2023-02-03 未鲲(上海)科技服务有限公司 大数据计算任务的处理方法和系统
CN110727509A (zh) * 2019-09-24 2020-01-24 浙江大搜车软件技术有限公司 任务调度方法、装置、计算机设备和存储介质
CN111026530A (zh) * 2019-11-29 2020-04-17 珠海随变科技有限公司 一种任务调度方法、装置、计算机设备和存储介质
CN111078379B (zh) * 2019-12-06 2024-01-09 中至数据集团股份有限公司 任务调度方法、系统、移动终端及存储介质
CN111125444A (zh) * 2019-12-10 2020-05-08 中国平安财产保险股份有限公司 大数据任务调度管理方法、装置、设备及存储介质
CN111427698B (zh) * 2020-03-26 2022-11-15 深圳平安医疗健康科技服务有限公司 基于Azakban的数据同步方法、装置和计算机设备
WO2021196074A1 (zh) * 2020-04-01 2021-10-07 华为技术有限公司 任务调度方法及装置
CN111767128A (zh) * 2020-06-23 2020-10-13 北京字节跳动网络技术有限公司 执行定时任务的方法以及装置
CN111611066A (zh) * 2020-06-30 2020-09-01 平安银行股份有限公司 任务执行方法、任务执行服务器和存储介质
CN111831420B (zh) * 2020-07-20 2023-08-08 北京百度网讯科技有限公司 用于任务调度的方法、相关装置及计算机程序产品
CN112926012A (zh) * 2021-04-13 2021-06-08 郑州悉知信息科技股份有限公司 资源转移方法、装置和系统
CN113645064B (zh) * 2021-07-16 2023-04-07 北京达佳互联信息技术有限公司 任务下发方法、装置、电子设备及存储介质
CN113408745B (zh) * 2021-08-20 2021-11-16 北京瑞莱智慧科技有限公司 一种任务的调度方法、装置、设备及存储介质
CN114301970B (zh) * 2021-12-21 2023-10-17 北京达佳互联信息技术有限公司 服务调用方法、装置、电子设备及存储介质
CN114384825B (zh) * 2022-01-13 2024-01-26 上海季丰电子股份有限公司 电源设备的控制方法、装置、电子设备及介质
CN114650320B (zh) * 2022-03-10 2024-03-15 腾讯科技(深圳)有限公司 任务调度方法、装置、存储介质及电子设备
CN114860332A (zh) * 2022-04-08 2022-08-05 北京快乐茄信息技术有限公司 数据处理方法、装置及存储介质
CN115032918A (zh) * 2022-06-24 2022-09-09 一汽解放汽车有限公司 数据处理方法、装置、电子设备及存储介质
CN116760741B (zh) * 2023-08-15 2023-11-07 太平金融科技服务(上海)有限公司深圳分公司 一种数据状态监控方法、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101165655A (zh) * 2006-10-20 2008-04-23 国际商业机器公司 多处理器计算系统及其任务分配方法
CN108319499A (zh) * 2018-02-07 2018-07-24 麒麟合盛网络技术股份有限公司 任务调度方法及装置
CN108345497A (zh) * 2018-01-17 2018-07-31 千寻位置网络有限公司 Gnss离线定位模拟的执行方法及系统、定位装置
CN109086986A (zh) * 2018-07-20 2018-12-25 中国邮政储蓄银行股份有限公司 作业调度方法及装置
CN109743390A (zh) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 任务调度方法、装置、计算机设备和存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229517A (zh) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 任务调度方法和装置
WO2017203319A1 (en) * 2016-05-23 2017-11-30 Pratik Sharma Weighted job scheduler
CN107608774A (zh) * 2017-09-08 2018-01-19 新智云数据服务有限公司 一种任务调度方法、装置、设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101165655A (zh) * 2006-10-20 2008-04-23 国际商业机器公司 多处理器计算系统及其任务分配方法
CN108345497A (zh) * 2018-01-17 2018-07-31 千寻位置网络有限公司 Gnss离线定位模拟的执行方法及系统、定位装置
CN108319499A (zh) * 2018-02-07 2018-07-24 麒麟合盛网络技术股份有限公司 任务调度方法及装置
CN109086986A (zh) * 2018-07-20 2018-12-25 中国邮政储蓄银行股份有限公司 作业调度方法及装置
CN109743390A (zh) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 任务调度方法、装置、计算机设备和存储介质

Cited By (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897638B (zh) * 2020-07-27 2024-04-19 广州虎牙科技有限公司 分布式任务调度方法及系统
CN111897638A (zh) * 2020-07-27 2020-11-06 广州虎牙科技有限公司 分布式任务调度方法及系统
CN112035230A (zh) * 2020-09-01 2020-12-04 中国银行股份有限公司 一种任务调度文件生成方法、装置及存储介质
CN112035230B (zh) * 2020-09-01 2023-08-18 中国银行股份有限公司 一种任务调度文件生成方法、装置及存储介质
CN112256749B (zh) * 2020-09-27 2023-03-03 上海楚腾信息技术有限公司 获取智能化数据报表的方法、系统、终端及存储介质
CN112256749A (zh) * 2020-09-27 2021-01-22 上海楚腾信息技术有限公司 获取智能化数据报表的方法、系统、终端及存储介质
CN112181654A (zh) * 2020-09-28 2021-01-05 亚信科技(中国)有限公司 任务调度的方法、装置、设备及计算机可读存储介质
CN112256451A (zh) * 2020-10-19 2021-01-22 北京达佳互联信息技术有限公司 定时业务消息生成方法、装置、电子设备及存储介质
CN114444080A (zh) * 2020-10-30 2022-05-06 马上消费金融股份有限公司 一种服务器的配置方法和计算机可读存储介质
CN112367205A (zh) * 2020-11-12 2021-02-12 深圳前海微众银行股份有限公司 一种对http调度请求的处理方法及调度系统
CN112367205B (zh) * 2020-11-12 2023-04-18 深圳前海微众银行股份有限公司 一种对http调度请求的处理方法及调度系统
CN112506481A (zh) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 业务数据交互方法、装置、计算机设备和存储介质
CN112559158A (zh) * 2020-12-29 2021-03-26 中国人民银行清算总中心 微服务定时任务调度方法及装置
CN112905339A (zh) * 2021-02-08 2021-06-04 中国工商银行股份有限公司 任务调度执行方法、装置及系统
CN112905339B (zh) * 2021-02-08 2024-02-13 中国工商银行股份有限公司 任务调度执行方法、装置及系统
CN113110329A (zh) * 2021-04-14 2021-07-13 深圳赛动生物自动化有限公司 基于干细胞制备的并行操作控制方法、装置、系统及介质
CN113110329B (zh) * 2021-04-14 2023-01-10 深圳赛动智造科技有限公司 基于干细胞制备的并行操作控制方法、装置、系统及介质
CN113342490A (zh) * 2021-05-31 2021-09-03 北京顶象技术有限公司 一种建模任务调度的执行方法和装置
CN113391902B (zh) * 2021-06-22 2023-03-31 未鲲(上海)科技服务有限公司 一种任务调度方法及设备、存储介质
CN113391902A (zh) * 2021-06-22 2021-09-14 未鲲(上海)科技服务有限公司 一种任务调度方法及设备、存储介质
CN113656155B (zh) * 2021-07-21 2024-04-12 广州三七互娱科技有限公司 任务处理方法、装置、计算机设备和存储介质
CN113656155A (zh) * 2021-07-21 2021-11-16 广州三七互娱科技有限公司 任务处理方法、装置、计算机设备和存储介质
CN113641514A (zh) * 2021-07-23 2021-11-12 浙江吉利控股集团有限公司 一种可控的实时任务远程执行系统
CN113641474A (zh) * 2021-08-13 2021-11-12 广州虎牙科技有限公司 一种任务调度方法、装置及计算机可读存储介质
CN113641474B (zh) * 2021-08-13 2024-03-15 广州虎牙科技有限公司 一种任务调度方法、装置及计算机可读存储介质
CN113687946A (zh) * 2021-08-19 2021-11-23 海尔数字科技(青岛)有限公司 一种任务管理方法、装置、服务器和存储介质
CN113839783A (zh) * 2021-09-27 2021-12-24 中国工商银行股份有限公司 一种任务处理方法、装置及设备
CN114584416A (zh) * 2022-02-11 2022-06-03 青岛海尔科技有限公司 一种电器设备控制方法、系统及存储介质
CN114584416B (zh) * 2022-02-11 2023-12-19 青岛海尔科技有限公司 一种电器设备控制方法、系统及存储介质
WO2023165622A1 (zh) * 2022-03-04 2023-09-07 上海联影医疗科技股份有限公司 图像重建任务调度方法以及装置
CN114780216A (zh) * 2022-04-18 2022-07-22 湖南长银五八消费金融股份有限公司 任务调度方法、装置、计算机设备和存储介质
CN114531477A (zh) * 2022-04-22 2022-05-24 深圳丰尚智慧农牧科技有限公司 功能组件的配置方法、装置、计算机设备和存储介质
CN114924772B (zh) * 2022-07-15 2022-10-25 浙江大华技术股份有限公司 一种算法包的更新方法及设备
CN114924772A (zh) * 2022-07-15 2022-08-19 浙江大华技术股份有限公司 一种算法包的更新方法及设备
CN115018398A (zh) * 2022-08-09 2022-09-06 广东咏声动漫股份有限公司 一种动画项目延期预测方法、装置及系统
CN115816441B (zh) * 2022-10-31 2023-08-08 实时侠智能控制技术有限公司 基于任务描述的机器人控制方法、装置及可读介质
CN115816441A (zh) * 2022-10-31 2023-03-21 实时侠智能控制技术有限公司 基于任务描述的机器人控制方法、装置及可读介质
CN117056058B (zh) * 2023-10-11 2024-02-27 国家气象信息中心(中国气象局气象数据中心) 基于状态感知的任务调度方法、系统、设备及存储介质
CN117056058A (zh) * 2023-10-11 2023-11-14 国家气象信息中心(中国气象局气象数据中心) 基于状态感知的任务调度方法、系统、设备及存储介质
CN117311950A (zh) * 2023-11-28 2023-12-29 宁德时代新能源科技股份有限公司 任务处理方法、任务处理装置、电子设备及存储介质
CN117311950B (zh) * 2023-11-28 2024-04-26 宁德时代新能源科技股份有限公司 任务处理方法、任务处理装置、电子设备及存储介质
CN117539642A (zh) * 2024-01-09 2024-02-09 上海晨钦信息科技服务有限公司 一种信用卡分布式调度平台及调度方法
CN117539642B (zh) * 2024-01-09 2024-04-02 上海晨钦信息科技服务有限公司 一种信用卡分布式调度平台及调度方法

Also Published As

Publication number Publication date
CN109743390B (zh) 2022-02-22
CN109743390A (zh) 2019-05-10

Similar Documents

Publication Publication Date Title
WO2020140683A1 (zh) 任务调度方法、装置、计算机设备和存储介质
CN109788053B (zh) 数据同步方法和系统
CN108449405B (zh) 事件提醒方法、装置、计算机设备和存储介质
CN108829727B (zh) 数据存储方法、装置、计算机设备和存储介质
CN109474578B (zh) 报文消息校验方法、装置、计算机设备和存储介质
CN109542529B (zh) 基于函数名称的埋点方法、装置、计算机设备及存储介质
CN111367883A (zh) 数据同步方法、装置、设备及计算机可读存储介质
WO2019075774A1 (zh) 设备参数配置方法、装置、计算机设备和存储介质
US9053136B2 (en) Systems and methods for identifying contacts as users of a multi-tenant database and application system
WO2021068348A1 (zh) 任务部署方法、系统和存储介质
CN111182065A (zh) 基于mqtt协议的消息处理方法、装置和计算机设备
CN108446172B (zh) 数据调取方法、装置、计算机设备和存储介质
WO2020140680A1 (zh) 异步回调方法、装置、计算机设备和存储介质
CN113220431A (zh) 跨云的分布式数据任务调度方法、设备及存储介质
CN111258723A (zh) 分布式系统的事务处理方法、装置、系统、介质及设备
CN105871960B (zh) 调用数据共享的方法、装置及设备
CN111177121A (zh) 订单数据反馈方法、装置、计算机设备及存储介质
WO2019136813A1 (zh) Api文件管理方法、服务器及存储介质
CN113688183A (zh) 多类型数据源抽取方法、系统、终端设备以及存储介质
CN112948491A (zh) 数据同步的方法、装置、终端设备及计算机可读存储介质
CN110851458A (zh) 资源的获取方法、装置、系统和存储介质
CN111159271A (zh) 数据处理方法、装置、计算机设备及存储介质
CN114020612A (zh) 测试数据构造处理方法、装置、计算机设备及存储介质
CN114003414B (zh) 业务回访处理方法、装置、计算机设备和存储介质
CN112650567A (zh) 全局通用定时器的实现方法、装置以及计算机设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19908058

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19908058

Country of ref document: EP

Kind code of ref document: A1