CN111861235A - Task flow arrangement method and device and electronic equipment - Google Patents

Task flow arrangement method and device and electronic equipment Download PDF

Info

Publication number
CN111861235A
CN111861235A CN202010729398.8A CN202010729398A CN111861235A CN 111861235 A CN111861235 A CN 111861235A CN 202010729398 A CN202010729398 A CN 202010729398A CN 111861235 A CN111861235 A CN 111861235A
Authority
CN
China
Prior art keywords
task
target
task execution
execution
flow chart
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010729398.8A
Other languages
Chinese (zh)
Inventor
刘天宇
王宏前
孙刚友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202010729398.8A priority Critical patent/CN111861235A/en
Publication of CN111861235A publication Critical patent/CN111861235A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Abstract

The invention provides a task flow arrangement method and device and electronic equipment, wherein the method comprises the following steps: determining at least one configuration parameter in a task execution schedule; configuring at least one configuration parameter in a task execution schedule to generate a target task execution schedule, wherein the target task execution schedule comprises at least one target task; according to the target task execution schedule, drawing a task execution flow chart through a visual graphical interface according to a logic sequence of task execution for at least one target task in the target task execution schedule; when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition; and executing the task execution flow corresponding to the task execution flow chart. The scheme can realize the visual arrangement of tasks.

Description

Task flow arrangement method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a task flow arrangement method and device and electronic equipment.
Background
With the development of society and the progress of technology, people have more and more requirements on task scheduling execution, and related tasks can be automatically executed or users can be automatically reminded through setting of timed tasks, so that the tedious work of the users is reduced, and the work of the users is facilitated to be developed.
In the prior art, when task scheduling is performed, generally, a developer needs to perform task script arrangement in a coding mode, and scheduling management of tasks is realized by running the task script, however, the task flow arrangement mode needs the developer to code the task script, and visual arrangement of the tasks cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a task flow arrangement method and device, which can realize the visual arrangement of tasks.
In a first aspect, an embodiment of the present invention provides a task flow scheduling method, including:
determining at least one configuration parameter in a task execution schedule;
configuring the at least one configuration parameter in the task execution schedule to generate a target task execution schedule, wherein the target task execution schedule comprises at least one target task;
according to the target task execution schedule, drawing a task execution flow chart through a visual graphical interface according to a logic sequence of task execution for at least one target task in the target task schedule;
when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition;
and executing the task execution flow corresponding to the task execution flow chart.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
receiving an execution result aiming at the task execution flow;
according to the received execution result, setting at least one piece of identification information aiming at the at least one target task to enable the execution result to be visualized, wherein the identification information is used for representing feedback information of the execution result of the at least one target task, and the feedback information comprises: a completion status of the at least one target task, an exception status of the at least one target task;
according to the at least one piece of identification information, performing exception handling on a target task execution flow corresponding to an exception state;
preferably, the first and second electrodes are formed of a metal,
further comprising:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to the at least one newly added task execution process;
performing parameter configuration on the at least one newly added configuration parameter;
determining a logical relationship between the at least one newly added task and the at least one target task, wherein the logical relationship is included in the at least one newly added task execution process;
and drawing the newly added task execution flow chart through the visual graphical interface according to the task execution flow chart and the logic relationship between the at least one newly added task and the at least one target task.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to have the association relationship, executing:
s1: determining a target first task and a target second task which have an incidence relation, wherein the target first task is contained in the first task execution flow chart, and the target second task is contained in the second task execution flow chart;
s2: determining whether the target first task needs to be executed in advance and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by a pause identification;
s4: when the target first task is completely executed, canceling the pause identification mark of the target second task, and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task through the pause identification;
s7: and when the target second task is completely executed, canceling the pause identification mark of the target first task, and triggering the target first task to start executing.
Preferably, the first and second electrodes are formed of a metal,
the configuration parameters include: task configuration parameters and condition trigger configuration parameters;
the determining at least one configuration parameter in the task execution schedule includes:
determining at least one target task configuration parameter and at least one target condition trigger configuration parameter in the task execution schedule, wherein the target condition configuration parameter comprises: year, month, day, hour, minute, second, week;
the configuring the at least one configuration parameter in the task execution schedule to generate a target task execution schedule includes:
configuring the at least one target task configuration parameter and the at least one target condition configuration parameter in the task execution schedule;
generating the target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
the executing of the task execution flow corresponding to the task execution flow chart comprises:
determining whether a trigger condition corresponding to the condition trigger information is met;
and executing the task execution flow corresponding to the task execution flow chart when the trigger condition corresponding to the condition trigger information is determined to be met.
In a second aspect, an embodiment of the present invention provides a task flow scheduling apparatus, including:
the determining module is used for determining at least one configuration parameter in the task execution schedule;
the configuration module is used for configuring the at least one configuration parameter determined by the determination module and generating a target task execution schedule, wherein the target task execution schedule comprises at least one target task;
the flow processing module is used for drawing a task execution flow chart through a visual graphical interface according to the logical sequence of task execution of at least one target task in the target task schedule according to the target task execution schedule of the configuration module; when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition; and executing the task execution flow corresponding to the task execution flow chart.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
the receiving module is used for receiving an execution result aiming at the task execution flow;
a setting module, configured to set at least one piece of identification information for the at least one target task according to the execution result received by the receiving module, so as to visualize the execution result, where the identification information is used to represent feedback information of the execution result of the at least one target task, and the feedback information includes: a completion status of the at least one target task, an exception status of the at least one target task;
the exception handling module is used for carrying out exception handling aiming at the target task execution flow corresponding to the exception state according to the at least one piece of identification information set by the setting module;
preferably, the first and second electrodes are formed of a metal,
further comprising:
and the newly-added flow module is used for executing:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to the at least one newly added task execution process;
performing parameter configuration on the at least one newly added configuration parameter;
determining a logical relationship between the at least one newly added task and the at least one target task, wherein the logical relationship is included in the at least one newly added task execution process;
and drawing the newly added task execution flow chart through the visual graphical interface according to the task execution flow chart and the logic relationship between the at least one newly added task and the at least one target task.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
an associated task processing module for performing:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to have the association relationship, executing:
s1: determining a target first task and a target second task which have an incidence relation, wherein the target first task is contained in the first task execution flow chart, and the target second task is contained in the second task execution flow chart;
s2: determining whether the target first task needs to be executed in advance and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by a pause identification;
s4: when the target first task is completely executed, canceling the pause identification mark of the target second task, and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task through the pause identification;
s7: and when the target second task is completely executed, canceling the pause identification mark of the target first task, and triggering the target first task to start executing.
Preferably, the first and second electrodes are formed of a metal,
the configuration parameters include: task configuration parameters and condition trigger configuration parameters;
the determining module is configured to determine at least one target task configuration parameter and at least one target condition trigger configuration parameter in the task execution schedule, where the target condition configuration parameter includes: year, month, day, hour, minute, second, week;
the configuration module is configured to configure the at least one target task configuration parameter and the at least one target condition configuration parameter in the task execution schedule; generating the target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
the flow processing module is used for determining whether the triggering condition corresponding to the condition triggering information is met; and executing the task execution flow corresponding to the task execution flow chart when the trigger condition corresponding to the condition trigger information is determined to be met.
In a third aspect, the present invention provides an electronic device comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method of any of the first aspects.
In a fourth aspect, the present invention provides a computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the method of any of the first aspects.
The embodiment of the invention provides a task flow arrangement method and a task flow arrangement device, when actually scheduling tasks, because the execution period of part of the tasks is unclear, the tasks need to be repeatedly adjusted according to the actual operation condition of a project, and the project needs to be restarted after each adjustment, so that the tasks cannot be visually arranged according to the actual requirement to provide continuous services. Therefore, in order to implement the visual arrangement of the tasks, the task execution flow chart can be drawn according to the logic sequence of the target task execution through the visual graphical interface, and the configuration parameters corresponding to the tasks need to be determined for each target task, and the configuration parameters of the target tasks are configured correspondingly in the task plan execution table. The task execution schedule configured by the user is a target task execution schedule meeting the requirements of the user. Based on the configured target task execution schedule, the user can draw a task execution flow chart on a visual graphical interface according to the task execution logic of the user and the logic relation among the target tasks. Meanwhile, for the task nodes with the circular traversal, the tasks can be written into a task with a fragment type, the executors can execute the tasks in a parallel mode after recognition, and the traversed elements are collected and then executed in a fragment mode. The multi-task execution logic can be programmed through the visual graphical interface drawing process, and the complex task scheduling is realized while the operation is simple. Through the process, the task script is not required to be coded and run by developers, and the task can be visually arranged according to actual service requirements so as to realize task scheduling.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a task flow orchestration method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another task flow orchestration method according to an embodiment of the invention;
FIG. 3 is a diagram of a task flow scheduling apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another task flow scheduling apparatus according to an embodiment of the present invention.
FIG. 5 is a diagram of another task flow scheduling apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram of another task flow scheduling apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a task flow arrangement method, which may include the following steps:
step 101: determining at least one configuration parameter in a task execution schedule;
step 102: configuring at least one configuration parameter in a task execution schedule to generate a target task execution schedule, wherein the target task execution schedule comprises at least one target task;
step 103: according to the target task execution schedule, drawing a task execution flow chart through a visual graphical interface according to a logic sequence of task execution for at least one target task in the target task execution schedule;
step 104: when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition;
step 105: and executing the task execution flow corresponding to the task execution flow chart.
In the embodiment of the invention, when the task is actually scheduled, because the execution cycle of part of the tasks is unclear, the tasks need to be repeatedly adjusted according to the actual operation condition of the project, and the project needs to be restarted after each adjustment, so that the tasks cannot be visually arranged according to the actual requirement to provide continuous services. Therefore, in order to implement the visual arrangement of the tasks, the task execution flow chart can be drawn according to the logic sequence of the target task execution through the visual graphical interface, and the configuration parameters corresponding to the tasks need to be determined for each target task, and the configuration parameters of the target tasks are configured correspondingly in the task plan execution table. The task execution schedule configured by the user is a target task execution schedule meeting the requirements of the user. Based on the configured target task execution schedule, the user can draw a task execution flow chart on a visual graphical interface according to the task execution logic of the user and the logic relation among the target tasks. Meanwhile, for the task nodes with the circular traversal, the tasks can be written into a task with a fragment type, the executors can execute the tasks in a parallel mode after recognition, and the traversed elements are collected and then executed in a fragment mode. The multi-task execution logic can be programmed through the visual graphical interface drawing process, and the complex task scheduling is realized while the operation is simple. Through the process, the task script is not required to be coded and run by developers, and the task can be visually arranged according to actual service requirements so as to realize task scheduling.
In order to view and monitor the running status of the task in real time, in an embodiment of the present invention, the foregoing embodiment further includes:
receiving an execution result aiming at a task execution flow;
according to the received execution result, setting at least one piece of identification information aiming at least one target task to enable the execution result to be visualized, wherein the identification information is used for representing feedback information of the execution result of the at least one target task, and the feedback information comprises: a completion status of the at least one target task, an exception status of the at least one target task;
and according to the at least one piece of identification information, performing exception processing aiming at the target task execution flow corresponding to the exception state.
In the embodiment of the invention, because the existing task scheduling system cannot check the running state of the task in real time on line, in order to check and monitor the running state of the task in real time, the running state of each target task can be determined according to the execution result of the task execution flow, and the identification information for representing the running state of each target task is set for each target task according to the execution result of each target task, so that a user can check the corresponding identification information through a visual graphical interface to monitor the running condition of the task in real time, visualize the running state of the task in real time, and monitor the task on the basis, thereby finding the defects of the task in time to improve and improving the working efficiency.
In order to add a new task execution flow, in an embodiment of the present invention, the foregoing embodiment further includes:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to at least one newly added task execution flow;
performing parameter configuration on at least one newly added configuration parameter;
determining a logic relationship between at least one newly added task and at least one target task in at least one newly added task execution process;
and drawing the newly added task execution flow chart through a visual graphical interface according to the task execution flow chart and the logic relation between at least one newly added task and at least one target task.
In the embodiment of the invention, when a new addition is required on the basis of the executed task execution flow chart according to the actual project requirement, the original task execution flow chart can be used as a template, the newly added part is firstly configured with newly added configuration parameters, the newly added execution flow can be operated after the newly added configuration parameters are configured and a logic relationship is established by a user through a visual graphical interface, and meanwhile, when a plurality of similar task execution flow charts are established, the same part can be extracted to manufacture the flow template, and corresponding prototype attributes are designed for parameter configuration of the different part, so that the arrangement of the task execution flow charts can be conveniently realized.
In order to implement multi-process collaboration, in an embodiment of the present invention, the foregoing embodiment further includes:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to be in the association relationship, executing the following steps:
s1: determining a target first task and a target second task which have an association relationship, wherein the target first task is contained in a first task execution flow chart, and the target second task is contained in a second task execution flow chart;
s2: determining whether the target first task needs to be executed first and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by the pause identification;
s4: when the target first task is executed, canceling the pause identification mark of the target second task and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task through the pause identification;
s7: and when the execution of the target second task is completed, canceling the pause identification mark of the target first task and triggering the target first task to start executing.
In the embodiment of the invention, after the tasks are visually arranged, a plurality of task execution flow charts with mutual association can support the function of multi-flow cooperation. When the execution sequence between two task execution flowcharts on a certain node needs to be defined in time, a pause identifier may be added to the task execution flowcharts. When the progress and the execution result of the target task in the other task execution flowchart need to be waited, the current target task corresponding to the current task execution flowchart may mark the current execution state through the pause identifier, then wait for the result of the other process, and after the execution result of the other process is obtained, the current process may resume running.
In order to determine the target task execution schedule, in an embodiment of the present invention, the configuration parameters in the foregoing embodiment include: task configuration parameters and condition trigger configuration parameters;
step 101 in the foregoing embodiment determines at least one configuration parameter in the task execution schedule, which may be specifically implemented as follows:
determining at least one target task configuration parameter and at least one target condition trigger configuration parameter in a task execution schedule, wherein the target condition configuration parameter comprises: year, month, day, hour, minute, second, week;
step 102 in the foregoing embodiment configures at least one configuration parameter in the task execution schedule to generate the target task execution schedule, which may be specifically implemented by the following means:
configuring at least one target task configuration parameter and at least one target condition configuration parameter in a task execution schedule;
generating a target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
the task execution process corresponding to the task execution flowchart executed in step 105 in the foregoing embodiment may be specifically implemented by the following processes:
determining whether a trigger condition corresponding to the condition trigger information is met;
and executing the task execution flow corresponding to the task execution flow chart when the triggering condition corresponding to the condition triggering information is determined to be met.
In the embodiment of the present invention, since a parameter corresponding to each target task needs to be configured to generate a target execution schedule, and each target task is necessarily triggered and executed under a certain condition, in addition to configuring a basic task configuration parameter, a condition trigger configuration parameter corresponding to a trigger condition needs to be configured, for example, a specific trigger period may be input on a visual graphical interface for simple triggering, a delay time may be input for triggering, or a Cron expression may be input for triggering. In the process of triggering the Cron expression, a user can click a mouse to select information such as year, month, day, hour, minute, second, week and the like required by task triggering, so that the Cron expression can be automatically generated, and meanwhile, the execution of the flow corresponding to the target task can be triggered only when the triggering condition corresponding to the condition triggering information is met, so that whether the triggering condition corresponding to the condition triggering information is met needs to be determined, and when the triggering condition corresponding to the condition triggering information is determined to be met, the task execution flow corresponding to the task execution flow chart is automatically executed.
In an embodiment of the invention, the timing task is an important scene in software development, and plays an important service for both user and service providers. Initially only the system is required to perform a specific job at the scheduled point in time, (which may be disposable or periodic), such a timing task is simple to implement and can also meet most of the requirements. With the iterative development of software, the use scenes of timing tasks are continuously rich, the requirements are more and more, and the task triggering becomes more and more complex, so that dynamic task management is required, for example, some tasks need to be executed in a chain manner, the execution of the following tasks depends on the execution result of the former tasks, and the timing tasks need to support task arrangement. Therefore, the invention can be applied to a dynamic timing task management system in a complex situation and has important significance for good development of project ecology.
The Quartz-based framework is a set of open-source lightweight task scheduling framework developed based on Java, provides a powerful and flexible scheduling mechanism, simultaneously reserves the simplicity of a using method, and can be used for basic timing tasks such as fixed point triggering, periodic triggering and the like through simple configuration. However, when the method is used in a complex production environment, the method has the characteristics of ensuring good operability and processing complex tasks, such as processing of chain tasks and parallel tasks, and simultaneously ensuring easy expandability so as to adapt to the increasing demands in the production environment. The invention can build a set of visual task management system which is easy to operate and expand based on Quartz. The system can integrate Quartz and Web, and dispatch and management of tasks are performed by using visual operation, so that an operator only needs to pay attention to the logic configuration of the dispatching of the tasks and does not need to pay attention to the specific implementation of the timing tasks, and the requirement of the operator on professional knowledge is reduced to the maximum extent.
As shown in fig. 2, in order to more clearly illustrate the technical solution and the advantages of the present invention, the following detailed description of the task flow scheduling method provided in the embodiment of the present invention may specifically include the following steps:
step 201: determining at least one target task configuration parameter and at least one target condition trigger configuration parameter in a task execution schedule, wherein the target condition configuration parameter comprises: year, month, day, hour, minute, second, week, etc.
Step 202: and configuring at least one target task configuration parameter and at least one target condition configuration parameter in the task execution schedule.
Step 203: and generating a target task execution schedule according to the configuration information, wherein the configuration information comprises condition trigger information, and the target task execution schedule comprises at least one target task.
Step 204: and drawing a task execution flow chart through a visual graphical interface according to the logic sequence of task execution of at least one target task in the target task schedule according to the target task execution schedule.
In particular, common tasks, such as: the method comprises a timing task, a delay task, a fixed frequency task, a Cron expression task and a condition triggering task. A user can draw a task execution flow by using a visual graphical interface, and can also write a task flow DSL script, and the tasks can be sequentially operated according to the flow after the system is loaded and released. The process can support a series connection mechanism, a parallel connection mechanism, a delay mechanism, a retry mechanism, a circulation mechanism and a fence mechanism, and can meet most process scenes.
If the writing of the task flow DSL script is adopted, functions of scheduling group management, flow filter, fault transfer and the like can be realized based on the meta-programming technology. The scheduling element programming can be used for enabling a scheduling plan to correspond to a scheduling flow group, namely the capacity of dynamically switching the flow during the running period, and meanwhile, filters can be added among the flow nodes and used for filtering the execution of some tasks and the operation of ending the flow in advance. The two functions can be used as a dispatching fault transfer function, and when an abnormal process occurs in the execution process, the abnormal process can be automatically switched to or terminated, so that system breakdown is avoided, and the capabilities of quick failure and safety failure are provided.
For example, in terms of task scheduling, in addition to simple scheduling of a single task, complex scheduling of multiple tasks may be achieved. Different tasks can be associated according to the internal dependency relationship in a DAG (demand oriented mapping) mode in a visual graphical interface in a dragging and drawing mode, so that visual arrangement of complex scheduling tasks is realized. Meanwhile, the execution states of the upstream and the downstream of a certain task can be visually observed through the DAG graph, the reason that the certain task is not executed is judged, the tasks which are influenced by deleting the certain task are deleted, and the like, so that the management is convenient.
Step 205: when at least two target tasks are executed in parallel, the task nodes are written into the tasks of the fragmentable type, so that the executors execute the tasks in a parallel mode after recognition.
Step 206: and determining whether the trigger condition corresponding to the condition trigger information is met.
Step 207: and executing the task execution flow corresponding to the task execution flow chart when the triggering condition corresponding to the condition triggering information is determined to be met.
Step 208: and receiving an execution result aiming at the task execution flow.
Step 209: according to the received execution result, setting at least one piece of identification information aiming at least one target task to enable the execution result to be visualized, wherein the identification information is used for representing feedback information of the execution result of the at least one target task, and the feedback information comprises: a completion status of the at least one target task, an exception status of the at least one target task.
Step 210: and according to the at least one piece of identification information, performing exception processing aiming at the target task execution flow corresponding to the exception state.
Specifically, the task can be visually arranged, and the task execution result can be statistically analyzed. Through the information which is durably stored in the database after each task is executed, visual charts such as a line graph, a bar graph and the like of historical execution task information are generated through statistical analysis, and the total number of tasks, the total number of task running times, the number of running success times, the number of running failure times and the like in the scheduling system can be clearly observed; and further analyzing to obtain a stability chart of the task according to the execution success and failure times of the task, and analyzing the complexity and the like of the task according to the execution overhead of the task, so as to provide data for implementation and development personnel, optimize task codes, scheduling processes and the like, and improve the system stability.
The visual arrangement can also comprise visual checking of information such as system load, memory, processes, CPUs and the like, so that a user can know the performance service condition of the current system conveniently, and server resources are distributed and used more reasonably.
Step 211: and when the newly added task execution flow is required, determining at least one newly added task execution flow, wherein the at least one newly added task execution flow comprises at least one newly added task, and the at least one newly added task is not included in the task execution flow chart.
Step 212: and determining at least one newly added configuration parameter corresponding to the at least one newly added task execution process.
Step 213: and performing parameter configuration on at least one newly added configuration parameter.
Step 214: and determining the logic relationship between at least one newly added task and at least one target task in the execution flow of at least one newly added task.
Step 215: and drawing the newly added task execution flow chart through a visual graphical interface according to the task execution flow chart and the logic relation between at least one newly added task and at least one target task.
In particular, tasks may be dynamically added, updated, and destroyed. The task adding support system embeds tasks, service calls and uploads task executable files.
Step 216: when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, whether the first task execution flowchart and the second task execution flowchart have an association relation or not is determined.
Step 217: and if the first task execution flow chart and the second task execution flow chart are determined to have the association relationship, determining a target first task and a target second task which have the association relationship, wherein the target first task is contained in the first task execution flow chart, and the target second task is contained in the second task execution flow chart.
Step 218: it is determined whether the target first task needs to be executed first and the target second task needs to be executed after the target first task is executed, if yes, step 219 is executed, otherwise, step 221 is executed.
Step 219: the current execution state of the targeted second task is marked by the pause identification.
Step 220: and when the execution of the target first task is completed, canceling the pause identification mark of the target second task and triggering the target second task to start executing.
Step 221: it is determined whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, step 222 is executed.
Step 222: the current execution state of the targeted first task is marked by a pause identification.
Step 223: and when the execution of the target second task is completed, canceling the pause identification mark of the target first task and triggering the target first task.
The present invention may provide a variety of task registration schemes, such as: system built-in, service invocation, script invocation, and the like.
1. Tasks built in the system are that tasks are directly programmed in the scheduling system, the tasks are generally tasks directly related to the scheduling system, such as data persistence, backup and the like of the scheduling system, the tasks are directly registered on the scheduling system and are uniformly managed and executed by the scheduling system, and tasks can be scheduled for basic tasks according to requirements so as to realize more complex functions;
2. service invocation mainly refers to that a scheduling system directly invokes services provided by other systems. The calling mode is suitable for the fact that the task and the service system have strong dependency relationship, and the scheduling system only needs to call the specified service according to the trigger. The method can be specifically called by a URL (uniform resource locator) and a service registration center, and when the number of services is small, the URL is directly used for calling, so that the method is simple and easy to manage; as more and more services are provided, service URL configuration management becomes very difficult and can be invoked through a service registry;
3. script calls provide a method to start and manage processes. The method can execute Python scripts, jar packages, shell scripts and the like, the scripts or the programs are stripped from the service system, can be conveniently modified and repeatedly uploaded in a dispatching system, and is simple in development and free of invasion to the service system. Creating a scheduling system task using custom scripts is the most dominant task registration scheme.
As shown in fig. 3, an embodiment of the present invention provides a task flow scheduling apparatus, including:
a determining module 301, configured to determine at least one configuration parameter in the task execution schedule;
a configuration module 302, configured to configure at least one configuration parameter determined by the determination module 301, and generate a target task execution schedule, where the target task execution schedule includes at least one target task;
a flow processing module 303, configured to draw a task execution flow chart through a visual graphical interface according to a logical order of task execution for at least one target task in the target task schedule according to the target task execution schedule of the configuration module 302; when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition; and executing the task execution flow corresponding to the task execution flow chart.
In the embodiment of the invention, when the task is actually scheduled, because the execution cycle of part of the tasks is unclear, the tasks need to be repeatedly adjusted according to the actual operation condition of the project, and the project needs to be restarted after each adjustment, so that the tasks cannot be visually arranged according to the actual requirement to provide continuous services. Therefore, in order to implement the visual arrangement of the tasks, the task execution flow chart can be drawn according to the logic sequence of the target task execution through the visual graphical interface, and for each target task, the configuration parameters corresponding to the task need to be determined through the determination module, and the configuration parameters of the target task are configured correspondingly in the task plan execution table through the configuration module. The task execution schedule configured by the user is a target task execution schedule meeting the requirements of the user. Based on the configured target task execution schedule, the user can draw a task execution flow chart on a visual graphical interface through the flow processing module according to the task execution logic of the user and the logic relation among all target tasks. Meanwhile, for the task nodes with the circular traversal, the tasks can be written into a task with a fragment type, the executors can execute the tasks in a parallel mode after recognition, and the traversed elements are collected and then executed in a fragment mode. The multi-task execution logic can be programmed through the visual graphical interface drawing process, and the complex task scheduling is realized while the operation is simple. Through the process, the task script is not required to be coded and run by developers, and the task can be visually arranged according to actual service requirements so as to realize task scheduling.
Based on the task flow scheduling apparatus shown in fig. 3, as shown in fig. 4, in an embodiment of the present invention, the task flow scheduling apparatus further includes:
a receiving module 304, configured to receive an execution result for the task execution flow;
a setting module 305, configured to set at least one identification information for the at least one target task according to the execution result received by the receiving module 304, so as to visualize the execution result, where the identification information is used to represent feedback information of the execution result of the at least one target task, and the feedback information includes: a completion status of the at least one target task, an exception status of the at least one target task;
an exception handling module 306, configured to perform exception handling on a target task execution flow corresponding to an exception state according to at least one piece of identification information set by the setting module 305;
based on the task flow scheduling apparatus shown in fig. 3, as shown in fig. 5, in an embodiment of the present invention, the task flow scheduling apparatus further includes:
a new flow module 307, configured to perform:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to at least one newly added task execution flow;
performing parameter configuration on at least one newly added configuration parameter;
determining a logic relationship between at least one newly added task and at least one target task in at least one newly added task execution process;
and drawing the newly added task execution flow chart through a visual graphical interface according to the task execution flow chart and the logic relation between at least one newly added task and at least one target task.
Based on the task flow orchestration device shown in fig. 3, as shown in fig. 6, the task flow orchestration device further includes:
an associated task processing module 308 for performing:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to be in the association relationship, executing the following steps:
s1: determining a target first task and a target second task which have an association relationship, wherein the target first task is contained in a first task execution flow chart, and the target second task is contained in a second task execution flow chart;
s2: determining whether the target first task needs to be executed first and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by the pause identification;
s4: when the target first task is executed, canceling the pause identification mark of the target second task and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task by the pause identification;
s7: and when the execution of the target second task is completed, canceling the pause identification mark of the target first task and triggering the target first task to start executing.
In an embodiment of the present invention, the configuration parameters include: task configuration parameters and condition trigger configuration parameters;
a determining module 301, configured to determine at least one target task configuration parameter and at least one target condition trigger configuration parameter in a task execution schedule, where the target condition configuration parameter includes: year, month, day, hour, minute, second, week;
a configuration module 302, configured to configure at least one target task configuration parameter and at least one target condition configuration parameter in the task execution schedule; generating a target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
a flow processing module 303, configured to determine whether a trigger condition corresponding to the condition trigger information is met; and executing the task execution flow corresponding to the task execution flow chart when the triggering condition corresponding to the condition triggering information is determined to be met.
It should be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the task flow scheduling apparatus. In other embodiments of the invention, the task flow orchestration means may comprise more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The embodiment of the present invention further provides a task flow arrangement device, including: at least one memory and at least one processor;
at least one memory for storing a machine readable program;
at least one processor for invoking a machine readable program to perform a method of task flow orchestration according to any of the embodiments of the invention.
An embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored on the computer-readable medium, and when the computer instructions are executed by a processor, the processor is enabled to execute the task flow scheduling method in any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, when the task is actually scheduled, because the execution cycle of part of the tasks is unclear, the tasks need to be repeatedly adjusted according to the actual operation condition of the project, and the project needs to be restarted after each adjustment, so that the tasks cannot be visually arranged according to the actual requirement to provide continuous services. Therefore, in order to implement the visual arrangement of the tasks, the task execution flow chart can be drawn according to the logic sequence of the target task execution through the visual graphical interface, and the configuration parameters corresponding to the tasks need to be determined for each target task, and the configuration parameters of the target tasks are configured correspondingly in the task plan execution table. The task execution schedule configured by the user is a target task execution schedule meeting the requirements of the user. Based on the configured target task execution schedule, the user can draw a task execution flow chart on a visual graphical interface according to the task execution logic of the user and the logic relation among the target tasks. Meanwhile, for the task nodes with the circular traversal, the tasks can be written into a task with a fragment type, the executors can execute the tasks in a parallel mode after recognition, and the traversed elements are collected and then executed in a fragment mode. The multi-task execution logic can be programmed through the visual graphical interface drawing process, and the complex task scheduling is realized while the operation is simple. Through the process, the task script is not required to be coded and run by developers, and the task can be visually arranged according to actual service requirements so as to realize task scheduling;
2. in an embodiment of the present invention, because the current task scheduling system cannot check the running state of the task online in real time, in order to check and monitor the running state of the task in real time, the running state of each target task can be determined according to the execution result of the task execution flow, and identification information for representing the running state of each target task is set for each target task according to the execution result of each target task, so that a user can check the corresponding identification information through a visual graphical interface to monitor the running condition of the task in real time, visualize the running state of the task in real time, and monitor the task on a basic basis, thereby finding the defects of the task in time to improve, and improving the working efficiency;
3. in an embodiment of the present invention, when a new addition is required based on an executed task execution flowchart according to actual project requirements, an original task execution flowchart may be used as a template, the configuration of new configuration parameters is performed on a new addition part first, the new addition execution flow may be run after the new configuration parameters are configured and a logical relationship is created by a user through a visual graphical interface, and meanwhile, when a plurality of similar task execution flowcharts are created, the same part may be extracted to make a flow template, and corresponding prototype attributes are designed for parameter configuration on a difference part, so that a plurality of task execution flowcharts may be arranged conveniently;
4. in an embodiment of the present invention, after performing visualization orchestration on a task, a function of multi-process collaboration can be supported among a plurality of task execution flowcharts having an association relationship. When the execution sequence between two task execution flowcharts on a certain node needs to be defined in time, a pause identifier may be added to the task execution flowcharts. When the progress and the execution result of the target task in the other task execution flowchart need to be waited, the current target task corresponding to the current task execution flowchart may mark the current execution state through the pause identifier, then wait for the result of the other process, and after the execution result of the other process is obtained, the current process may resume running.
5. In an embodiment of the present invention, since a parameter corresponding to each target task needs to be configured to generate a target execution schedule, and each target task is necessarily triggered and executed under a certain condition, in addition to configuring a basic task configuration parameter, a condition trigger configuration parameter corresponding to a trigger condition needs to be configured, for example, a specific trigger period may be input on a visual graphical interface for simple triggering, a delay time may be input for triggering, or a Cron expression may be input for triggering. In the process of triggering the Cron expression, a user can click a mouse to select information such as year, month, day, hour, minute, second, week and the like required by task triggering, so that the Cron expression can be automatically generated, and meanwhile, the execution of the flow corresponding to the target task can be triggered only when the triggering condition corresponding to the condition triggering information is met, so that whether the triggering condition corresponding to the condition triggering information is met needs to be determined, and when the triggering condition corresponding to the condition triggering information is determined to be met, the task execution flow corresponding to the task execution flow chart is automatically executed.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. The task flow arrangement method is characterized by comprising the following steps:
determining at least one configuration parameter in a task execution schedule;
configuring the at least one configuration parameter in the task execution schedule to generate a target task execution schedule, wherein the target task execution schedule comprises at least one target task;
according to the target task execution schedule, drawing a task execution flow chart through a visual graphical interface according to a logic sequence of task execution for at least one target task in the target task schedule;
when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition;
and executing the task execution flow corresponding to the task execution flow chart.
2. The method of claim 1,
further comprising:
receiving an execution result aiming at the task execution flow;
according to the received execution result, setting at least one piece of identification information aiming at the at least one target task to enable the execution result to be visualized, wherein the identification information is used for representing feedback information of the execution result of the at least one target task, and the feedback information comprises: a completion status of the at least one target task, an exception status of the at least one target task;
according to the at least one piece of identification information, performing exception handling on a target task execution flow corresponding to an exception state;
and/or the presence of a gas in the gas,
further comprising:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to the at least one newly added task execution process;
performing parameter configuration on the at least one newly added configuration parameter;
determining a logical relationship between the at least one newly added task and the at least one target task, wherein the logical relationship is included in the at least one newly added task execution process;
and drawing the newly added task execution flow chart through the visual graphical interface according to the task execution flow chart and the logic relationship between the at least one newly added task and the at least one target task.
3. The method of claim 1,
further comprising:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to have the association relationship, executing:
s1: determining a target first task and a target second task which have an incidence relation, wherein the target first task is contained in the first task execution flow chart, and the target second task is contained in the second task execution flow chart;
s2: determining whether the target first task needs to be executed in advance and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by a pause identification;
s4: when the target first task is completely executed, canceling the pause identification mark of the target second task, and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task through the pause identification;
s7: and when the target second task is completely executed, canceling the pause identification mark of the target first task, and triggering the target first task to start executing.
4. The method according to any one of claims 1 to 3,
the configuration parameters include: task configuration parameters and condition trigger configuration parameters;
the determining at least one configuration parameter in the task execution schedule includes:
determining at least one target task configuration parameter and at least one target condition trigger configuration parameter in the task execution schedule, wherein the target condition configuration parameter comprises: year, month, day, hour, minute, second, week;
the configuring the at least one configuration parameter in the task execution schedule to generate a target task execution schedule includes:
configuring the at least one target task configuration parameter and the at least one target condition configuration parameter in the task execution schedule;
generating the target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
the executing of the task execution flow corresponding to the task execution flow chart comprises:
determining whether a trigger condition corresponding to the condition trigger information is met;
and executing the task execution flow corresponding to the task execution flow chart when the trigger condition corresponding to the condition trigger information is determined to be met.
5. The task flow arrangement device is characterized by comprising:
the determining module is used for determining at least one configuration parameter in the task execution schedule;
the configuration module is used for configuring the at least one configuration parameter determined by the determination module and generating a target task execution schedule, wherein the target task execution schedule comprises at least one target task;
the flow processing module is used for drawing a task execution flow chart through a visual graphical interface according to the logical sequence of task execution of at least one target task in the target task schedule according to the target task execution schedule of the configuration module; when at least two target tasks are executed in parallel, writing the task nodes into a task of a fragmentable type so that an executor executes the task in a parallel mode after recognition; and executing the task execution flow corresponding to the task execution flow chart.
6. The apparatus of claim 5,
further comprising:
the receiving module is used for receiving an execution result aiming at the task execution flow;
a setting module, configured to set at least one piece of identification information for the at least one target task according to the execution result received by the receiving module, so as to visualize the execution result, where the identification information is used to represent feedback information of the execution result of the at least one target task, and the feedback information includes: a completion status of the at least one target task, an exception status of the at least one target task;
the exception handling module is used for carrying out exception handling aiming at the target task execution flow corresponding to the exception state according to the at least one piece of identification information set by the setting module;
and/or the presence of a gas in the gas,
further comprising:
and the newly-added flow module is used for executing:
when a new task execution flow is needed, determining at least one new task execution flow, wherein the at least one new task execution flow comprises at least one new task, and the at least one new task is not included in the task execution flow chart;
determining at least one newly added configuration parameter corresponding to the at least one newly added task execution process;
performing parameter configuration on the at least one newly added configuration parameter;
determining a logical relationship between the at least one newly added task and the at least one target task, wherein the logical relationship is included in the at least one newly added task execution process;
and drawing the newly added task execution flow chart through the visual graphical interface according to the task execution flow chart and the logic relationship between the at least one newly added task and the at least one target task.
7. The apparatus of claim 6,
further comprising:
an associated task processing module for performing:
when at least two task execution flowcharts exist, aiming at a first task execution flowchart and a second task execution flowchart in the at least two task execution flowcharts, determining whether the first task execution flowchart and the second task execution flowchart have an association relation;
if the first task execution flow chart and the second task execution flow chart are determined to have the association relationship, executing:
s1: determining a target first task and a target second task which have an incidence relation, wherein the target first task is contained in the first task execution flow chart, and the target second task is contained in the second task execution flow chart;
s2: determining whether the target first task needs to be executed in advance and the target second task needs to be executed after the target first task is executed, if yes, executing step S3, otherwise, executing step S5;
s3: marking a current execution state of the target second task by a pause identification;
s4: when the target first task is completely executed, canceling the pause identification mark of the target second task, and triggering the target second task to start executing;
s5: determining whether the target second task needs to be executed first and the target first task needs to be executed after the target second task is executed, if yes, executing step S6;
s6: marking a current execution state of the target first task through the pause identification;
s7: and when the target second task is completely executed, canceling the pause identification mark of the target first task, and triggering the target first task to start executing.
8. The apparatus according to any one of claims 5 to 7,
the configuration parameters include: task configuration parameters and condition trigger configuration parameters;
the determining module is configured to determine at least one target task configuration parameter and at least one target condition trigger configuration parameter in the task execution schedule, where the target condition configuration parameter includes: year, month, day, hour, minute, second, week;
the configuration module is configured to configure the at least one target task configuration parameter and the at least one target condition configuration parameter in the task execution schedule; generating the target task execution schedule according to configuration information, wherein the configuration information comprises condition trigger information;
the flow processing module is used for determining whether the triggering condition corresponding to the condition triggering information is met; and executing the task execution flow corresponding to the task execution flow chart when the trigger condition corresponding to the condition trigger information is determined to be met.
9. An electronic device, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program to perform the method of any of claims 1 to 4.
10. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 4.
CN202010729398.8A 2020-07-27 2020-07-27 Task flow arrangement method and device and electronic equipment Pending CN111861235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010729398.8A CN111861235A (en) 2020-07-27 2020-07-27 Task flow arrangement method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010729398.8A CN111861235A (en) 2020-07-27 2020-07-27 Task flow arrangement method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111861235A true CN111861235A (en) 2020-10-30

Family

ID=72947055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010729398.8A Pending CN111861235A (en) 2020-07-27 2020-07-27 Task flow arrangement method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111861235A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448728A (en) * 2021-06-22 2021-09-28 腾讯科技(深圳)有限公司 Cloud resource scheduling method, device, equipment and storage medium
CN113553366A (en) * 2021-07-14 2021-10-26 上海核工程研究设计院有限公司 Acquisition, grabbing and management device and method for nuclear power project construction plan data
CN114611995A (en) * 2022-03-30 2022-06-10 精英数智科技股份有限公司 Process scheduling method and system
CN114683268A (en) * 2020-12-31 2022-07-01 美的集团(上海)有限公司 Robot task decision method, device, equipment and storage medium
CN115809133A (en) * 2022-12-13 2023-03-17 北京领雁科技股份有限公司 Distributed scheduling system, method, electronic device, and computer-readable medium
CN117251298A (en) * 2023-11-20 2023-12-19 广州嘉为科技有限公司 Pipeline task cyclic execution method, system, equipment and medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114683268A (en) * 2020-12-31 2022-07-01 美的集团(上海)有限公司 Robot task decision method, device, equipment and storage medium
CN113448728A (en) * 2021-06-22 2021-09-28 腾讯科技(深圳)有限公司 Cloud resource scheduling method, device, equipment and storage medium
CN113553366A (en) * 2021-07-14 2021-10-26 上海核工程研究设计院有限公司 Acquisition, grabbing and management device and method for nuclear power project construction plan data
CN114611995A (en) * 2022-03-30 2022-06-10 精英数智科技股份有限公司 Process scheduling method and system
CN115809133A (en) * 2022-12-13 2023-03-17 北京领雁科技股份有限公司 Distributed scheduling system, method, electronic device, and computer-readable medium
CN117251298A (en) * 2023-11-20 2023-12-19 广州嘉为科技有限公司 Pipeline task cyclic execution method, system, equipment and medium
CN117251298B (en) * 2023-11-20 2024-03-19 广州嘉为科技有限公司 Pipeline task cyclic execution method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN111861235A (en) Task flow arrangement method and device and electronic equipment
CN111078315B (en) Microservice arranging and executing method and system, architecture, equipment and storage medium
Memon et al. Skoll: Distributed continuous quality assurance
US9298713B2 (en) Executor for software configuration automation
US20170255886A1 (en) Workflow execution
Breitenbücher et al. Pattern-based runtime management of composite cloud applications
US11704616B2 (en) Systems and methods for distributed business processmanagement
US8538793B2 (en) System and method for managing real-time batch workflows
US9904899B2 (en) Systems and/or methods for reactive, distributable, and extensible process execution
US8347294B2 (en) Automated administration using composites of atomic operations
US10243804B2 (en) Continuous delivery of hierarchical products using executor for software configuration automation
CN106600226B (en) Method and device for optimizing process management system
US10649808B2 (en) Outcome-based job rescheduling in software configuration automation
CN114924858A (en) Task scheduling method and device, storage medium and electronic equipment
Lakshmanan et al. A business centric end-to-end monitoring approach for service composites
WO2005082072A2 (en) Testing web services workflow using web service tester
Valderas et al. Supporting a hybrid composition of microservices. The eucaliptool platform
CN113885844A (en) Business service arranging method and related device
CN115185825A (en) Interface test scheduling method and device
Tragatschnig et al. Runtime process adaptation for bpel process execution engines
CN114706738A (en) Method and device for automatically burying point at client
CN113687927A (en) Method, device, equipment and storage medium for scheduling and configuring flash tasks
CN116501477B (en) Automatic data processing method, device and equipment
Zatout et al. A model-driven approach for the verification of an adaptive service composition
Inzinger et al. Decisions, Models, and Monitoring--A Lifecycle Model for the Evolution of Service-Based Systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination