Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Task scheduling method and apparatus, device and storage medium

A task scheduling and task technology, applied in multi-programming devices, program startup/switching, data processing applications, etc., can solve the problems of repeated execution, low task execution efficiency, and cumbersome modification process.

Inactive Publication Date: 2018-01-19
新智云数据服务有限公司
View PDF12 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the above method, when there is a task that needs to be adjusted, if task B needs to be modified, both task B in the business module 1 script and business module 2 script must be updated to the modified task B, and re-uploaded The modification process of the new business module 1 script and the new business module 2 script to the scheduler is cumbersome. At the same time, when the tasks in a certain script are highly coupled, it is easy to cause abnormal task scheduling, which in turn leads to low task execution efficiency.
And in the above method, since the same task may be included in different business module scripts, if both the business module 1 script and the business module 2 script include task B, then the business module 1 script and the business module 2 script are scheduled separately , causing task B to be executed repeatedly, which also leads to low task execution efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task scheduling method and apparatus, device and storage medium
  • Task scheduling method and apparatus, device and storage medium
  • Task scheduling method and apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a flow chart of a task scheduling method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where tasks need to be scheduled. The method can be executed by a task scheduling device, which can be implemented by software and / or hardware implement. The method provided in this embodiment specifically includes the following steps:

[0030] Step 110, create at least one task ID and receive at least one task script corresponding to the at least one task ID.

[0031] Exemplarily, when a task needs to be created, the user can select the new option on the task viewing interface of the scheduler, and the scheduler will automatically create a task ID corresponding to the task, and will create a script path corresponding to the task ID. After the user chooses to upload the task script of the task in the task setting interface corresponding to the task ID, the scheduler can receive the task script corresponding to the ta...

Embodiment 2

[0053] figure 2 It is a flowchart of a task scheduling method provided by Embodiment 2 of the present invention. This method is further optimized on the basis of the above-mentioned embodiments. The method provided in this embodiment specifically includes the following steps:

[0054] Step 210: Create at least one task ID and receive at least one task script corresponding to the at least one task ID.

[0055] Step 220, setting the execution status of at least one task ID as not executed.

[0056] Step 230, acquire the use status of at least one task ID task.

[0057] Preferably, after the scheduler creates a task ID and receives the task script corresponding to the task ID, the user can set the usage status corresponding to the task ID in the task setting interface corresponding to the task ID, and then the scheduler can obtain each task The use state corresponding to the ID, and store the use state corresponding to each task ID, the task ID and the execution state corres...

Embodiment 3

[0095] image 3 It is a schematic structural diagram of a task scheduling device provided by Embodiment 3 of the present invention. The device can be composed of software and / or hardware. The device is suitable for a method that needs to schedule tasks and can generally be integrated into a scheduler. The device provided in this embodiment specifically includes: a task script receiving module 310, an execution status setting module 320, an execution status saving module 330, a first task ID acquisition module 340 and a task script scheduling module 350, wherein,

[0096] The task script receiving module 310 creates at least one task ID and receives at least one task script corresponding to the at least one task ID;

[0097] An execution state setting module 320, configured to set the execution state of the at least one task ID as unexecuted;

[0098] An execution state saving module 330, configured to store the at least one task ID and the execution state of the at least one...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a task scheduling method and apparatus, a device and a storage medium. The method comprises the steps of creating at least one task ID and receiving at least one task script inone-to-one correspondence with the at least one task ID; setting an executive state of the at least one task ID as a non-executive state, and correspondingly storing the at least one task ID and theexecutive state of the at least one task ID in a first executive state comparison table; if a set time is up, obtaining the task IDs of the tasks in the non-executive states in the first executive state comparison table in sequence to serve as first target task IDs; and for the first target task IDs, if the executive states of dependent task IDs of the first target task IDs are determined to be executed states according to a dependent relationship comparison table and the first executive state comparison table, scheduling the task scripts corresponding to the first target task IDs to execute first target tasks. According to the method provided by the invention, the tasks can be ensured not to be repeatedly executed and the task execution efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of computer applications, in particular to a task scheduling method, device, equipment and storage medium. Background technique [0002] Task scheduling is an indispensable part of enterprise applications and is widely used in application systems such as safety production, marketing management, project management, and collaborative office, such as regularly reporting business data, generating business reports every morning, and regularly calling external services for synchronization Data, etc., all work that needs to be done automatically requires the support of task scheduling. [0003] In the existing technical solutions, the scheduling tasks are mainly performed in units of "business lines". For example, business module 1 includes task A, task B, and task C, and the task dependencies are that task B depends on task A, and task C depends on task B; The business module 2 includes task B, task D and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48G06Q10/06
Inventor 罗海月李建林彭霖王红攀刘朕
Owner 新智云数据服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products