Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for running task

A task and parent task technology, applied in the computer field, can solve the problems of sub-tasks that cannot obtain accurate context, inaccurate task execution results, and inconsistent contexts.

Active Publication Date: 2015-02-18
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of realizing the present invention, the inventor found that according to the practice in the prior art, there are the following problems: the context when any task is executed at a specified historical moment cannot be provided, and the context of the task can only be dynamically calculated by the program logic code, which is often not Expected context, resulting in inaccurate task execution results; each task in the task flow cannot inherit the context information set by the parent task, but can only dynamically obtain the context according to its own program code logic, and the subtasks cannot obtain accurate context, resulting in When the task flow is re-executed according to the specified historical moment, the context of each task is not uniform, which also causes inaccurate task execution results

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
  • Method and device for running task
  • Method and device for running task
  • Method and device for running task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0021] In the embodiment of the present invention, the context information when the parent task is running is persistently stored in the context server. Tasks and subtasks access the same input source. The following will be described in conjunction with specific examples. In this example, a data processing task flow includes four steps: data extraction task, data modelin...

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 provides a method and a device for running tasks, for accurately executing subtasks of a task stream and accurately re-executing any task at any appointed historical moment. The method for running the tasks comprises the following steps: storing the contextual information of the tasks in the task stream when a parent task is run, and acquiring the contextual information after the sub-task of the parent task is started.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for running tasks. Background technique [0002] When a computer system executes a large number of tasks, it usually uses a scheduling system for task scheduling. Quarz is a commonly used task scheduling system that can be used to create simple or run ten, hundreds, or even tens of thousands of tasks; its purpose is to provide powerful timing processing functions, so that our applications can follow the provided schedule to execute different applications. Quartz is mainly composed of three parts: plan scheduler container, executable tasks and triggers. After the executable tasks and triggers are registered on the scheduler container to form an assembled task, the task scheduling can be executed along with the container startup. [0003] When each task is executed, it dynamically calculates the context required by the task according to the logic se...

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/46G06F9/48
Inventor 钟德艮马文金
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD