CN110737524B - Task rule management method, device, equipment and medium - Google Patents

Task rule management method, device, equipment and medium Download PDF

Info

Publication number
CN110737524B
CN110737524B CN201910991984.7A CN201910991984A CN110737524B CN 110737524 B CN110737524 B CN 110737524B CN 201910991984 A CN201910991984 A CN 201910991984A CN 110737524 B CN110737524 B CN 110737524B
Authority
CN
China
Prior art keywords
task
configuration platform
dynamic rule
rule
updated
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.)
Active
Application number
CN201910991984.7A
Other languages
Chinese (zh)
Other versions
CN110737524A (en
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.)
Beijing Mind Creation Information Technology Co ltd
Original Assignee
Beijing Mind Creation 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 Beijing Mind Creation Information Technology Co ltd filed Critical Beijing Mind Creation Information Technology Co ltd
Priority to CN201910991984.7A priority Critical patent/CN110737524B/en
Publication of CN110737524A publication Critical patent/CN110737524A/en
Application granted granted Critical
Publication of CN110737524B publication Critical patent/CN110737524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification discloses a task rule management method, a device, equipment and a medium, wherein the task rule management method comprises the following steps: after a task starting condition is triggered, acquiring global parameters for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task; if yes, starting the task according to the global parameters and the initial dynamic rules; before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated; and if so, executing the updated dynamic rule.

Description

Task rule management method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for task rule management.
Background
The rule of the existing calculation task generally consists of two parts, namely calculation logic, such as normal mathematical calculation of count, discrete count, avg, sum and the like; the second is special business rules, such as black list, white list, dimension table, custom rule, etc. In the existing processing mode, the computing task couples the two parts of code, and the task needs to be redeployed after iteration or updating on any aspect. However, in a normal scenario, the business rules are changed frequently, but the computation logic is not changed frequently, and if the task is redeployed only because the business rules are changed, the maintenance cost is huge.
In view of the above, there is a need for a more efficient and effective task rule management scheme.
Disclosure of Invention
Embodiments of the present specification provide a method, an apparatus, a device, and a medium for task rule management, so as to solve a technical problem of how to perform task rule management more efficiently and effectively.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
the embodiment of the specification provides a task rule management method, which comprises the following steps of;
after a task starting condition is triggered, acquiring global parameters for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not;
and if so, executing the updated dynamic rule.
The embodiment of the specification provides a task rule management device, which comprises a task rule management module;
the task starting module is used for acquiring global parameters for starting the task from the first configuration platform after the task starting condition is triggered, and detecting whether the second configuration platform has an initial dynamic rule corresponding to the task; and the system is used for starting the task according to the global parameter and the initial dynamic rule if the initial dynamic rule corresponding to the task exists in the second configuration platform;
the dynamic rule updating module is used for determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not before the task is finished; and the dynamic rule processing module is used for executing the updated dynamic rule if the dynamic rule corresponding to the task on the second configuration platform is updated.
An embodiment of the present specification provides a task rule management device, including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to:
after a task starting condition is triggered, acquiring global parameters for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated;
and if so, executing the updated dynamic rule.
Embodiments of the present specification provide a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of:
after a task starting condition is triggered, acquiring a global parameter for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated;
and if so, executing the updated dynamic rule.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the first configuration platform and the second configuration platform respectively acquire the global parameters and the dynamic rules, so that the task rules are separated from the codes, the task rules can be managed through the configuration platforms, the decoupling of task computing logic and the dynamic rules is realized, and the task rule management effect and management efficiency, and the task starting and running effect and efficiency are improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the embodiments of the present specification or the technical solutions in the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a task rule management method according to a first embodiment of the present disclosure.
Fig. 2 is an application schematic diagram of a task rule management method provided in the first embodiment of the present specification.
Fig. 3 is a schematic diagram of a first configuration platform in the first embodiment of the present specification.
Fig. 4 is a schematic diagram of a second configuration platform in the first embodiment of the present specification.
Fig. 5 is a task start schematic diagram in the first embodiment of the present specification.
Fig. 6 is a schematic diagram of dynamic rule refresh in the first embodiment of the present specification.
Fig. 7 is a schematic structural diagram of a task rule management device according to a second embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification. It should be apparent that the embodiments described below are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
As shown in fig. 1, a task rule management method is provided in a first embodiment of the present specification. The execution subject of this embodiment may be a computer or a server or a corresponding task rule management system, that is, the execution subject may be various and may be set or changed according to actual situations. In addition, a third-party application program can assist the execution main body to execute the embodiment; for example, as shown in fig. 2, the task rule management method in this embodiment may be executed by a server, and a corresponding application program may also be installed on a terminal (held by a user) (including but not limited to a mobile phone and a computer), where the server corresponds to the application program, data transmission may be performed between the server and the terminal held by the user, and a page and information presentation or input and output may be performed to the user through the application program.
As shown in fig. 1, the task rule management method in this embodiment includes:
s101, after a task starting condition is triggered, acquiring global parameters for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task.
In this embodiment, the "task" may be various, for example, a real-time computing task, which is not limited in this embodiment. The "task starting condition" may also be various, for example, a related person clicks a certain or some pages or certain page buttons or inputs some data on a certain or some pages, etc., which may be used as the triggering task starting condition, and the corresponding "certain or some pages or certain or some page buttons or some data" may be used as the task starting condition. Each task may have a task start condition, and the task start conditions corresponding to different tasks may be the same or different.
In this embodiment, a task may be registered in advance on the task management platform, a resource may be applied, and a jobkey may be obtained.
After a task start condition of a certain task (not limited, but not marked as a "target task") is triggered, global parameters (which may also be referred to as global configuration parameters, including computing logic) for starting the target task may be obtained from the first configuration platform. Global parameters include, but are not limited to, source, sink related information, such as links and/or accounts and/or passwords and/or operator parallelism of accounts, and the like. The global parameter may be configured by the first configuration platform, and the global parameter may be a property list of key value. Specifically, the obtaining of the global parameter may include: the global parameters are automatically pulled from the first configuration platform by a custom Software Development Kit (SDK, the same below) embedded in the target task. In this embodiment, the global parameter (corresponding to the jobkey) may be configured through the first configuration platform, and the first configuration platform may be as shown in fig. 3.
On the other hand, the task may also have some special business rules, which are called dynamic rules, that is, rules whose changes can cause the calculation result to change when the task runs continuously, and the dynamic rules include, but are not limited to, black lists, white lists, dimension tables, custom rules, and the like. In this embodiment, it is detected whether the second configuration platform has an initial dynamic rule corresponding to the target task (the initial dynamic rule is also a dynamic rule, and if the initial dynamic rule exists, the initial dynamic rule is a dynamic rule that is detected first after the task start condition is triggered, and therefore the initial dynamic rule may be referred to as an initial dynamic rule). Specifically, detecting whether the second configuration platform has the initial dynamic rule corresponding to the target task may include: and the software toolkit goes to a second configuration platform to detect whether the target task (or jobkey) has a corresponding dynamic rule.
In this embodiment, the global parameter and the dynamic rule may be collectively referred to as a task rule. In particular, the global parameters may be obtained first, and then the initial dynamic rules may be detected.
S103: and if the second configuration platform has the initial dynamic rule corresponding to the task, starting the task according to the global parameter and the initial dynamic rule.
In this embodiment, if the second configuration platform has the initial dynamic rule corresponding to the target task, the global parameter and the initial dynamic rule are executed. Executing the global parameter may include: the key-value pairs described above are automatically injected into the target task topology by the software toolkit. Executing (or parsing) the initial dynamic rule may include: and pulling the dynamic rules by a software toolkit, injecting the dynamic rules into the data stream, and broadcasting the dynamic rules to the target task full topology. I.e. according to global parameters and initial dynamic rules, to start the target task. Task initiation may be as shown in fig. 5.
In this embodiment, if the initial dynamic rule exists in the second configuration platform, it is determined whether the initial dynamic rule meets a preset condition (for example, the initial dynamic rule is verified, if the verification passes, the initial dynamic rule meets the preset condition, and if the verification fails, the initial dynamic rule does not meet the preset condition); if the initial dynamic rule meets the preset condition, executing the initial dynamic rule; and/or if the initial dynamic rule does not meet the preset condition, the initial dynamic rule is not executed, and the target task is started by executing the global parameter.
And if the second configuration platform does not have the initial dynamic rule corresponding to the target task (or the dynamic rule is not detected after the target task starting condition is triggered, the global parameter is executed to start the target task.
In this embodiment, the dynamic rules (including the initial dynamic rules) may be configured through a second configuration platform, which may be as shown in fig. 4.
S105: and before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated.
Before the target task is finished (there may be a corresponding task ending condition, referring to the task starting condition), it may be determined (e.g., periodically detected) whether the dynamic rule corresponding to the target task on the second configuration platform is updated. Dynamic rule updating here includes: the dynamic rule corresponding to the target task on the second configuration platform is changed from an old rule to a new rule, and the old rule can be an initial dynamic rule.
Specifically, the software toolkit may pull the dynamic rule corresponding to the target task on the second configuration platform at regular time, and the dynamic rule corresponding to the target task when the software toolkit is pulled last may be different from the dynamic rule corresponding to the target task when the software toolkit is pulled next (where "last time" and "next time" are two adjacent times, and "last time" includes the first time pulling after the task start condition is triggered). In this way, it may be determined that the dynamic rules corresponding to the target task on the second configuration platform are updated. The software toolkit is pulled regularly, continuous and uninterrupted monitoring on the second configuration platform is not needed, task operation effect and efficiency can be improved, and operation cost is reduced.
S107: and if the dynamic rule corresponding to the task on the second configuration platform is updated, executing the updated dynamic rule.
If the dynamic rule corresponding to the target task on the second configuration platform is updated, the updated dynamic rule is executed, that is, the latest dynamic rule is globally broadcasted (referring to the initial dynamic rule), so that the dynamic rule is refreshed or replaced, as shown in fig. 6. The effective time of the dynamic rule updating can be smaller than a preset threshold value, and the updating efficiency of the dynamic rule is improved.
In this embodiment, whether the initial dynamic rule or the updated dynamic rule is the initial dynamic rule or the updated dynamic rule, it may be determined whether the initial dynamic rule or the updated dynamic rule meets a preset condition (for example, the dynamic rule is verified, if the dynamic rule passes the verification, the dynamic rule meets the preset condition, and if the dynamic rule does not pass the verification, the dynamic rule does not meet the preset condition, so as to ensure the reliability of the dynamic rule); if the dynamic rule meets the preset condition, executing the dynamic rule; and/or if the dynamic rule does not meet the preset condition, not executing the dynamic rule.
In this embodiment, it may be determined whether the dynamic rule (including the initial dynamic rule) corresponds to an interception list. And if so, adding filter interception in the data stream, and intercepting according to the key corresponding to the interception list.
In this embodiment, if the dynamic rule is incorrect and the execution fails, an alarm may be given.
In the embodiment, a first configuration platform and a second configuration platform are used as interfaces, global parameters and dynamic rules are configured and obtained through the first configuration platform and the second configuration platform respectively, so that the task rules are separated from codes, the task rules can be managed through the configuration platforms (the first configuration platform and the second configuration platform can be integrated into a unified configuration platform), the unified broadcast is distributed to each computing node of a computing engine, the decoupling of task computing logic and the dynamic rules is realized, the change of the global parameters does not need to be packaged and uploaded again (tasks are restarted), the change of the dynamic rules does not need to be redeployed with the tasks, the dynamic rules are updated quickly, the task rule management effect and management efficiency and the task starting and running effect and efficiency are improved, and the method is particularly suitable for tasks or scenes with high efficiency requirements in real-time computing and the like.
As shown in fig. 7, a second embodiment of the present specification provides a task rule management device, including:
the task starting module 201 is configured to obtain a global parameter for starting the task from a first configuration platform after a task starting condition is triggered, and detect whether an initial dynamic rule corresponding to the task exists in a second configuration platform; and starting the task according to the global parameter and the initial dynamic rule if the initial dynamic rule corresponding to the task exists in the second configuration platform;
a dynamic rule updating module 203, configured to determine whether a dynamic rule corresponding to the task on the second configuration platform is updated before the task is finished; and the dynamic rule processing module is used for executing the updated dynamic rule if the dynamic rule corresponding to the task on the second configuration platform is updated.
Optionally, the task starting module 201 is further configured to:
and if the initial dynamic rule does not exist in the second configuration platform, executing the global parameter to start the task.
Optionally, configuring the global parameter through a first configuration platform;
and/or the presence of a gas in the gas,
configuring, by a second configuration platform, an initial dynamic rule and the dynamic rule.
Optionally, the task starting module 201 is further configured to:
if the initial dynamic rule exists in the second configuration platform, determining whether the initial dynamic rule meets a preset condition;
if yes, executing the initial dynamic rule;
and/or the presence of a gas in the atmosphere,
the dynamic rule updating module 203 is further configured to:
(before the task is finished), if the dynamic rule corresponding to the task on the second configuration platform is updated, determining whether the updated dynamic rule meets a preset condition;
and if so, executing the updated dynamic rule.
Optionally, the apparatus further comprises: an interception module;
if the initial dynamic rule exists in the second configuration platform, the interception module determines whether the initial dynamic rule corresponds to an interception list;
if yes, the interception module adds an interceptor for executing the interception list in the data stream;
and/or the presence of a gas in the atmosphere,
if the dynamic rule corresponding to the task on the second configuration platform is updated, the interception module determines whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream by the interception module.
Optionally, the global parameter includes a link and/or an account and/or a password and/or operator parallelism of the account.
Optionally, the global parameter is a property list of key value.
A third embodiment of the present specification provides a task rule management device including:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to:
after a task starting condition is triggered, acquiring a global parameter for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not;
and if so, executing the updated dynamic rule.
A fourth embodiment of the present specification provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform the steps of:
after a task starting condition is triggered, acquiring a global parameter for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not;
and if so, executing the updated dynamic rule.
The above embodiments may be used in combination.
While certain embodiments of the present disclosure have been described above, other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily have to be in the particular order shown, or in sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus, device, and non-volatile computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the description of the method embodiments.
The apparatus, the device, the nonvolatile computer readable storage medium, and the method provided in the embodiments of the present specification correspond to each other, and therefore, the apparatus, the device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain a corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), AHDL (advanced Hardware description ip address) Language, traffic, CUPL (core University Programming Language), HDCal, JHDL (Java Hardware description ip address Language), Lava, Lola, HDL, PALASM, palms, rhyd (Hardware runtime Language), and Hardware Language (Hardware Language-Language) which is currently used by native Language. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, MicrochIP address PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be regarded as a hardware component and the means for performing the various functions included therein may also be regarded as structures within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A task rule management method, comprising:
after a task starting condition is triggered, acquiring a global parameter for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task; the global parameters are configured through the first configuration platform;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not; the initial dynamic rules and the dynamic rules are configured through the second configuration platform;
if yes, executing the updated dynamic rule, and determining whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream.
2. The method of claim 1, further comprising:
and if the initial dynamic rule does not exist in the second configuration platform, executing the global parameter to start the task.
3. The method of claim 1, configuring the global parameter by a first configuration platform;
and/or the presence of a gas in the gas,
configuring, by a second configuration platform, an initial dynamic rule and the dynamic rule.
4. The method of claim 1, further comprising:
if the initial dynamic rule exists in the second configuration platform, determining whether the initial dynamic rule meets a preset condition;
if yes, executing the initial dynamic rule;
and/or the presence of a gas in the gas,
if the dynamic rule corresponding to the task on the second configuration platform is updated, determining whether the updated dynamic rule meets a preset condition;
and if so, executing the updated dynamic rule.
5. The method of any of claims 1 to 4, further comprising:
if the initial dynamic rule exists in the second configuration platform, determining whether the initial dynamic rule corresponds to an interception list;
if yes, adding an interceptor for executing the interception list in the data stream;
and/or the presence of a gas in the gas,
if the dynamic rule corresponding to the task on the second configuration platform is updated, determining whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream.
6. The method of claim 1, the global parameters comprising links and/or accounts and/or passwords and/or operator parallelism for accounts.
7. The method of claim 1 or 6, the global parameter being a property list of key value.
8. A task rule management apparatus, comprising:
the task starting module is used for acquiring global parameters for starting the task from the first configuration platform after the task starting condition is triggered, and detecting whether the second configuration platform has an initial dynamic rule corresponding to the task; and starting the task according to the global parameter and the initial dynamic rule if the initial dynamic rule corresponding to the task exists in the second configuration platform; the global parameters are configured through the first configuration platform;
the dynamic rule updating module is used for determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not before the task is finished; the initial dynamic rules and the dynamic rules are configured through the second configuration platform; and the dynamic rule processing module is used for executing the updated dynamic rule if the dynamic rule corresponding to the task on the second configuration platform is updated; determining whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream.
9. A task rule management device comprising:
at least one processor;
and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
after a task starting condition is triggered, acquiring global parameters for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task; the global parameters are configured through the first configuration platform;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not; the initial dynamic rules and the dynamic rules are configured through the second configuration platform;
if yes, executing the updated dynamic rule, and determining whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream.
10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the steps of:
after a task starting condition is triggered, acquiring a global parameter for starting the task from a first configuration platform, and detecting whether a second configuration platform has an initial dynamic rule corresponding to the task; the global parameters are configured through the first configuration platform;
if yes, starting the task according to the global parameters and the initial dynamic rules;
before the task is finished, determining whether a dynamic rule corresponding to the task on the second configuration platform is updated or not; the initial dynamic rules and the dynamic rules are configured through the second configuration platform;
if yes, executing the updated dynamic rule, and determining whether the initial dynamic rule corresponds to an interception list;
and if so, adding an interceptor for executing the interception list in the data stream.
CN201910991984.7A 2019-10-18 2019-10-18 Task rule management method, device, equipment and medium Active CN110737524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910991984.7A CN110737524B (en) 2019-10-18 2019-10-18 Task rule management method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910991984.7A CN110737524B (en) 2019-10-18 2019-10-18 Task rule management method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110737524A CN110737524A (en) 2020-01-31
CN110737524B true CN110737524B (en) 2022-07-22

Family

ID=69269227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910991984.7A Active CN110737524B (en) 2019-10-18 2019-10-18 Task rule management method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110737524B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114118798B (en) * 2021-11-26 2022-11-29 广州华旻信息科技有限公司 Task processing method and device of industrial internet platform and industrial internet platform

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968740B (en) * 2010-09-28 2013-05-08 中国工商银行股份有限公司 Service data dynamic adjustment server and system on basis of JAVA CLASS compilation
CN102456173A (en) * 2010-10-25 2012-05-16 北大方正集团有限公司 Realization method of workflow and apparatus thereof
CN102130965A (en) * 2011-04-13 2011-07-20 北京邮电大学 Method and system for dynamically combining services based on rule engine
CN102624870A (en) * 2012-02-01 2012-08-01 北京航空航天大学 Intelligent optimization algorithm based cloud manufacturing computing resource reconfigurable collocation method
CN103577178A (en) * 2012-08-03 2014-02-12 北京奥鹏远程教育中心有限公司 Method and system for flexibly modifying computation rule
CN103793223A (en) * 2013-12-27 2014-05-14 远光软件股份有限公司 Rule creating method and system
CN103927174A (en) * 2014-04-17 2014-07-16 北京视博数字电视科技有限公司 Service processing method and device
CN103973702A (en) * 2014-05-23 2014-08-06 浪潮电子信息产业股份有限公司 Information security defense rule intelligent deployment method based on improved particle swarm optimization
CN104636211B (en) * 2015-03-10 2018-10-16 中国农业银行股份有限公司 Information interacting method and middleware system between a kind of software systems
US11768852B2 (en) * 2017-12-27 2023-09-26 Marlabs Incorporated System and method for data analysis and presentation of data
CN110083457A (en) * 2018-01-26 2019-08-02 北京京东尚科信息技术有限公司 A kind of data capture method, device and data analysing method, device
CN108628947B (en) * 2018-04-02 2022-07-15 创新先进技术有限公司 Business rule matching processing method, device and processing equipment
CN109741087A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The management method and device of electronic coupons

Also Published As

Publication number Publication date
CN110737524A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN107577694B (en) Data processing method and device based on block chain
CN113259224B (en) Method and device for sending customer service data
CN109032825B (en) Fault injection method, device and equipment
KR20190094191A (en) Blockchain based data processing method and apparatus
CN110245279B (en) Dependency tree generation method, device, equipment and storage medium
CN107368292B (en) Resource compiling method and device
CN107577697B (en) Data processing method, device and equipment
CN106293669B (en) Webpage component generation method and device
CN110635962B (en) Abnormity analysis method and device for distributed system
CN107578338B (en) Service publishing method, device and equipment
CN103677978A (en) Method and electronic device for protecting processes
CN111190692A (en) Monitoring method and system based on Roc processor and readable medium
CN110737524B (en) Task rule management method, device, equipment and medium
CN115185755A (en) Abnormity detection method and device, storage medium and electronic equipment
CN111273965A (en) Container application starting method, system and device and electronic equipment
CN109582388B (en) Parameter configuration method, device and equipment
CN108470242B (en) Risk management and control method, device and server
CN113556260A (en) Flow monitoring method and device, storage medium and electronic equipment
CN116737345A (en) Distributed task processing system, distributed task processing method, distributed task processing device, storage medium and storage device
CN110825943A (en) Method, system and equipment for generating user access path tree data
CN111753328A (en) Private data leakage risk detection method and system
CN116304704A (en) Model training method and device, storage medium and electronic equipment
CN107239270B (en) Code processing method and device
CN113342376B (en) Method and device for upgrading operating system of Internet of things equipment
CN116108498A (en) Program execution method, program execution device, storage medium and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100000 room 701, 6 / F, building 1, No. 1, xidawang Road, Chaoyang District, Beijing

Applicant after: Beijing Mind Creation Information Technology Co.,Ltd.

Address before: Room 2802, 24 / F, building 4, 89 Jianguo Road, Chaoyang District, Beijing

Applicant before: Beijing Mind Creation Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant