[go: up one dir, main page]

CN103617493B - A kind of task processing method and device - Google Patents

A kind of task processing method and device Download PDF

Info

Publication number
CN103617493B
CN103617493B CN201310616600.6A CN201310616600A CN103617493B CN 103617493 B CN103617493 B CN 103617493B CN 201310616600 A CN201310616600 A CN 201310616600A CN 103617493 B CN103617493 B CN 103617493B
Authority
CN
China
Prior art keywords
task
data
module
processing module
time
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
CN201310616600.6A
Other languages
Chinese (zh)
Other versions
CN103617493A (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.)
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Beijing Zhongdian Feihua Communication Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Beijing Fibrlink Communications 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 State Grid Corp of China SGCC, State Grid Zhejiang Electric Power Co Ltd, Beijing Guodiantong Network Technology Co Ltd, Beijing Fibrlink Communications Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201310616600.6A priority Critical patent/CN103617493B/en
Publication of CN103617493A publication Critical patent/CN103617493A/en
Application granted granted Critical
Publication of CN103617493B publication Critical patent/CN103617493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请提供一种任务处理方法及装置,首先利用即时处理模块中的实时数据和/或数据处理结果经过数据转换以及智能分析模块进行分析后,得到分析结果,然后在将得到的分析结果作为即时处理模块的参考值返回给即时处理模块,以供即时处理模块处理数据时使用,使得即时处理以及智能分析可以进行有效的调度和数据交互,进而保证了智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性。

The present application provides a task processing method and device. Firstly, the real-time data and/or data processing results in the real-time processing module are used to analyze the data conversion and intelligent analysis modules to obtain the analysis results, and then the obtained analysis results are used as real-time The reference value of the processing module is returned to the real-time processing module for use when the real-time processing module processes data, so that real-time processing and intelligent analysis can carry out effective scheduling and data interaction, thereby ensuring intelligent power consumption in multiple time scales and business scenarios. Timeliness and accuracy in the process.

Description

一种任务处理方法及装置Method and device for task processing

技术领域technical field

本申请涉及智能电网技术领域,特别是涉及一种任务处理方法及装置。The present application relates to the technical field of smart grid, in particular to a task processing method and device.

背景技术Background technique

智能用电是构建坚强智能电网的重要支柱和六大环节之一,是实现坚强智能电网各项功能的基础和物理载体,是建设坚强智能电网的着力点和落脚点。Smart power consumption is an important pillar and one of the six major links in building a strong smart grid. It is the basis and physical carrier for realizing various functions of a strong smart grid, and it is the focus and foothold of building a strong smart grid.

智能用电根据业务场景以及时间尺度的不同分为即时处理和智能分析两种数据处理方式,即时处理致力于对实时数据、事件流的处理,保证处理的即时性,适用于智能用电领域的在线事件监控与实时决策业务;智能分析则关注海量历史数据的高度挖掘,由于其分析复杂性,往往需要一定时间完成分析,适用于智能用电领域的事后诊断处理和深度利用业务。According to different business scenarios and time scales, smart power consumption is divided into two data processing methods: real-time processing and intelligent analysis. Real-time processing is dedicated to the processing of real-time data and event streams, ensuring the immediacy of processing, and is applicable to the field of smart power consumption. Online event monitoring and real-time decision-making services; intelligent analysis focuses on the high-level mining of massive historical data. Due to the complexity of its analysis, it often takes a certain amount of time to complete the analysis, which is suitable for post-event diagnosis processing and in-depth utilization services in the field of intelligent power consumption.

也正因为即时处理一般支持多事件信息流上复杂的在线检测、分析和即时决策,不能充分利用历史数据的潜在知识,而智能分析系统在进行业务处理时,由于数据量大、算法复杂,其相应分析处理时间较长,不能做到即请求即显示,导致两者不能进行有效调度和数据交互,进而导致不能保证智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性。It is also because real-time processing generally supports complex online detection, analysis and real-time decision-making on multi-event information flow, and cannot make full use of the potential knowledge of historical data. However, when an intelligent analysis system performs business processing, due to the large amount of data and complex algorithms, its The corresponding analysis and processing time is long, and it cannot be displayed immediately upon request, resulting in the inability to perform effective scheduling and data interaction between the two, which in turn cannot guarantee the timeliness and accuracy of smart power consumption in multi-time scales and in the process of business scenario processing.

发明内容Contents of the invention

有鉴于此,本申请实施例提供一种任务处理方法及装置,以解决现有技术智能用电过程中,即时处理与智能分析不能进行有效调度和数据交互,进而导致不能保证智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性的问题。In view of this, the embodiment of the present application provides a task processing method and device to solve the problem that in the process of intelligent power consumption in the prior art, real-time processing and intelligent analysis cannot perform effective scheduling and data interaction, which leads to the inability to ensure the intelligent power consumption in multiple Issues of time scale and timeliness and accuracy in the processing of business scenarios.

为了实现上述目的,本申请实施例提供的技术方案如下:In order to achieve the above objectives, the technical solutions provided in the embodiments of the present application are as follows:

一种任务处理方法,包括:A task processing method, comprising:

响应任务请求信号,分别在第一数据库和/或第二数据库中获取与所述任务请求信号相对应的原始数据,其中,所述第一数据库用于存储实时数据,所述实时数据为即时处理模块接收到的终端采集设备实时发送的数据,所述第二数据库用于存储所述即时处理模块中的数据处理结果;In response to the task request signal, the original data corresponding to the task request signal is respectively obtained from the first database and/or the second database, wherein the first database is used to store real-time data, and the real-time data is processed immediately The data sent by the terminal acquisition device received by the module in real time, the second database is used to store the data processing results in the instant processing module;

将所述原始数据转换成目的数据,以控制所述智能分析模块根据与所述任务请求信号相对应的算法对所述目的数据进行分析,得到分析结果,其中,所述目的数据符合智能分析模块中对应任务请求信号的算法的算法要求;Converting the original data into target data to control the intelligent analysis module to analyze the target data according to the algorithm corresponding to the task request signal to obtain an analysis result, wherein the target data conforms to the intelligent analysis module Algorithm requirements of the algorithm corresponding to the task request signal in

将所述分析结果作为所述即时处理模块的参考值,返回给所述即时处理模块。The analysis result is used as a reference value of the immediate processing module, and returned to the instant processing module.

优选的,预先设置任务配置文件,所述任务配置文件中包括有至少一个任务以及分别与各个任务相关的属性,所述属性包括任务运行时间,Preferably, the task configuration file is preset, and the task configuration file includes at least one task and attributes related to each task, the attributes include task running time,

该方法还包括:The method also includes:

逐一判断所述任务配置文件中的各个任务的属性中的任务运行时间是否与系统当前运行时间相同;Judging one by one whether the task running time in the attributes of each task in the task configuration file is the same as the current running time of the system;

当存在任务的任务运行时间与系统当前运行时间相同时,发送与所述任务相对应的任务请求信号。When the task running time of the existing task is the same as the current running time of the system, a task request signal corresponding to the task is sent.

优选的,所述属性包括任务优先级,Preferably, the attributes include task priority,

该方法还包括:The method also includes:

当存在至少两个任务的任务运行时间与系统当前运行时间相同时,发送与任务优先级高的任务相对应的任务请求信号。When there are at least two tasks whose task running time is the same as the current system running time, a task request signal corresponding to a task with a higher task priority is sent.

优选的,将所述原始数据转换成目的数据,其中,所述目的数据符合智能分析模块中对应任务请求信号的算法的算法要求,包括:Preferably, the original data is converted into purpose data, wherein the purpose data meets the algorithm requirements of the algorithm corresponding to the task request signal in the intelligent analysis module, including:

根据智能分析模块中对应所述任务请求信号的算法的算法要求,将所述原始数据进行汇总、过滤生成目的数据。According to the algorithm requirements of the algorithm corresponding to the task request signal in the intelligent analysis module, the original data is summarized and filtered to generate the target data.

优选的,所述第一数据库的生成过程为:Preferably, the generation process of the first database is:

在所述任务配置文件中设定一个任务,以及与所述任务相关的属性,所述属性包括与即时处理模块的存储空间相对应的任务运行时间以及任务运行频率;Set a task in the task configuration file, and attributes related to the task, the attributes include task running time and task running frequency corresponding to the storage space of the immediate processing module;

根据所述任务运行时间以及任务运行频率,获取即时处理模块中的实时数据;所述实时数据为所述即时处理模块接收到的终端采集设备实时发送的数据;According to the task running time and the task running frequency, the real-time data in the instant processing module is obtained; the real-time data is the data sent in real time by the terminal acquisition device received by the instant processing module;

将获取到的所述实时数据进行存储,生成第一数据库。The acquired real-time data is stored to generate a first database.

优选的,所述第二数据库的生成过程为:Preferably, the generation process of the second database is:

在所述任务配置文件中设定一个任务,以及与所述任务相关的属性,所述属性包括任务运行时间、任务获取范围以及任务运行频率,Set a task in the task configuration file, and attributes related to the task, the attributes include task running time, task acquisition scope and task running frequency,

根据所述任务运行时间以及任务运行频率,获取与所述任务获取范围相对应的即时处理模块的数据处理结果;According to the task running time and the task running frequency, obtain the data processing result of the instant processing module corresponding to the task acquisition range;

将获取到的所述数据处理结果进行存储,生成第二数据库。The acquired data processing results are stored to generate a second database.

优选的,还包括:设置有至少一个第二数据库,所述每个数据库分别用于存储与不同的任务获取范围相对应的即时处理模块的数据处理结果。Preferably, the method further includes: at least one second database is provided, and each database is respectively used to store the data processing results of the immediate processing modules corresponding to different task acquisition ranges.

优选的,所述终端采集设备为可中断终端采集设备和/或不可中断终端采集设备。Preferably, the terminal collection device is an interruptible terminal collection device and/or an uninterruptible terminal collection device.

一种任务处理装置,包括:原始数据获取模块、控制分析模块以及结果返回模块,其中,A task processing device, comprising: a raw data acquisition module, a control analysis module and a result return module, wherein,

所述原始数据获取模块用于响应任务请求信号,分别在第一数据库以及第二数据库中获取与所述任务请求信号相对应的原始数据,其中,所述第一数据库用于存储实时数据,所述实时数据为即时处理模块接收到的终端采集设备实时发送的数据,所述第二数据库用于存储所述即时处理模块中的数据处理结果;The raw data acquisition module is used to respond to the task request signal, and obtain the original data corresponding to the task request signal in the first database and the second database respectively, wherein the first database is used to store real-time data, and the The real-time data is the data sent in real time by the terminal acquisition device received by the instant processing module, and the second database is used to store the data processing results in the instant processing module;

所述控制分析模块与所述原始数据获取模块相连接,用于将所述原始数据转换成目的数据,以控制所述智能分析模块根据与所述任务请求信号相对应的算法对所述目的数据进行分析,得到分析结果,其中,所述目的数据符合智能分析模块中对应任务请求信号的算法的算法要求;The control analysis module is connected with the original data acquisition module, and is used to convert the original data into target data, so as to control the intelligent analysis module to process the target data according to the algorithm corresponding to the task request signal Perform analysis to obtain analysis results, wherein the purpose data meets the algorithm requirements of the algorithm corresponding to the task request signal in the intelligent analysis module;

所述结果返回模块与所述控制分析模块相连接,用于将所述分析结果作为所述即时处理模块的参考值,返回给所述即时处理模块。The result returning module is connected to the control analysis module, and is used to return the analysis result to the immediate processing module as a reference value of the immediate processing module.

优选的,预先设置有任务配置文件,所述任务配置文件中包括有至少一个任务以及分别与各个任务相关的属性,所述属性包括任务运行时间,Preferably, a task configuration file is preset, and the task configuration file includes at least one task and attributes related to each task, the attributes include task running time,

该装置还包括:运行时间判断模块以及任务请求信号发送模块,其中,The device also includes: a running time judging module and a task request signal sending module, wherein,

所述运行时间判断模块用于逐一判断所述任务配置文件中的各个任务的属性中的任务运行时间是否与系统当前运行时间相同;The running time judging module is used to judge one by one whether the task running time in the attributes of each task in the task configuration file is the same as the current running time of the system;

所述任务请求信号发送模块与所述运行时间判断模块相连接,用于当存在任务的任务运行时间与系统当前运行时间相同时,发送与所述任务相对应的任务请求信号。The task request signal sending module is connected to the running time judging module, and is used for sending a task request signal corresponding to the task when the task running time of the existing task is the same as the current running time of the system.

本申请提供一种任务处理方法及装置,首先利用即时处理模块中的实时数据和/或数据处理结果经过数据转换以及智能分析模块进行分析后,得到分析结果,然后在将得到的分析结果作为即时处理模块的参考值返回给即时处理模块,以供即时处理模块处理数据时使用,使得即时处理以及智能分析可以进行有效的调度和数据交互,进而保证了智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性。The present application provides a task processing method and device. Firstly, the real-time data and/or data processing results in the real-time processing module are used to analyze the data conversion and intelligent analysis modules to obtain the analysis results, and then the obtained analysis results are used as real-time The reference value of the processing module is returned to the real-time processing module for use when the real-time processing module processes data, so that real-time processing and intelligent analysis can carry out effective scheduling and data interaction, thereby ensuring intelligent power consumption in multiple time scales and business scenarios. Timeliness and accuracy in the process.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本申请实施例一提供的一种任务处理方法流程图;FIG. 1 is a flowchart of a task processing method provided in Embodiment 1 of the present application;

图2为本申请实施例二提供的一种任务处理装置结构示意图。FIG. 2 is a schematic structural diagram of a task processing device provided in Embodiment 2 of the present application.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

实施例一:Embodiment one:

图1为本申请实施例一提供的一种任务处理方法流程图。FIG. 1 is a flowchart of a task processing method provided in Embodiment 1 of the present application.

S101、响应任务请求信号,分别在第一数据库以及第二数据库中获取与任务请求信号相对应的原始数据。S101. In response to a task request signal, acquire raw data corresponding to the task request signal from the first database and the second database respectively.

在本申请实施例中预先设置有第一数据库以及第二数据库,其中,第一数据库用于存储实时数据,实时数据为即时处理模块接收到的终端采集设备实时发送的数据,第二数据库用于存储即时处理模块中的数据处理结果。In the embodiment of the present application, a first database and a second database are preset, wherein the first database is used to store real-time data, and the real-time data is the data sent in real time by the terminal acquisition device received by the real-time processing module, and the second database is used for Store the data processing results in the real-time processing module.

在本申请实施例中,优选的但不限于终端采集设备为可中断终端采集设备和/或不可中断终端采集设备,发明人可以根据自己的需求任意设置终端数据采集设备。In the embodiment of the present application, preferably but not limited to, the terminal collection device is an interruptible terminal collection device and/or an uninterruptible terminal collection device, and the inventor can arbitrarily set the terminal data collection device according to his own needs.

响应任务请求信号,分别在第一数据库以及第二数据库中获取与任务请求信号相对应的原始数据,可见,原始数据即为根据任务请求信号的需要分别在第一数据库和/或第二数据库中直接获取的数据。In response to the task request signal, the original data corresponding to the task request signal are obtained in the first database and the second database respectively. It can be seen that the original data is respectively stored in the first database and/or the second database according to the needs of the task request signal data obtained directly.

优选的,在本申请实施例中第一数据库的生成过程为:在任务配置文件中设定一个任务以及与该任务相关的属性,其中,属性包括与即时处理模块的存储空间相对应的任务运行时间以及任务运行频率。这里的任务运行时间是根据即时处理模块的存储空间来设定的,也就是说,是根据即时处理模块存储数据的能力来设定任务运行时间的。Preferably, in the embodiment of the present application, the generation process of the first database is: setting a task and attributes related to the task in the task configuration file, wherein the attributes include the task execution corresponding to the storage space of the instant processing module time and how often the task runs. The task running time here is set according to the storage space of the real-time processing module, that is, the task running time is set according to the ability of the real-time processing module to store data.

当该任务的任务运行时间与系统当前运行时间相同时,发送与该任务相对应的任务请求信号,获取即时处理模块中的实时数据,将获取到的实时数据进行存储,生成第一数据库,且该实时数据为即时处理模块接收到的终端采集设备实时发送的数据。When the task running time of the task is the same as the current running time of the system, send a task request signal corresponding to the task, obtain real-time data in the instant processing module, store the obtained real-time data, and generate a first database, and The real-time data is the real-time data sent by the terminal collection device received by the real-time processing module.

在本申请实施例中,不仅设定了该任务的任务运行时间,还设定了任务运行频率,即该任务间隔多久执行一次,通过按照设定的任务运行时间以及任务运行频率执行该任务。In the embodiment of the present application, not only the task running time of the task is set, but also the task running frequency is set, that is, how often the task is executed, and the task is executed according to the set task running time and task running frequency.

优选的,在本申请实施例中第二数据库的生成过程为:在任务配置文件中设定一个任务,以及与任务相关的属性,属性包括任务运行时间、任务获取范围以及任务运行频率。Preferably, in the embodiment of the present application, the generation process of the second database is as follows: setting a task in the task configuration file and attributes related to the task, the attributes include task running time, task acquisition scope and task running frequency.

当该任务的任务运行时间与系统当前运行时间相同时,发送与该任务相对应的任务请求信号,根据任务运行时间以及任务运行频率,获取与任务获取范围相对应的即时处理模块的数据处理结果,并将获取到的数据处理结果进行存储,生成第二数据库。When the task running time of the task is the same as the current running time of the system, send a task request signal corresponding to the task, and obtain the data processing result of the instant processing module corresponding to the task acquisition range according to the task running time and task running frequency , and store the obtained data processing results to generate a second database.

优选的,在本申请实施例中,包含有至少一个第二数据库,且每个数据库分别用于存储与不同的任务获取范围相对应的即时处理模块的数据处理结果。Preferably, in the embodiment of the present application, at least one second database is included, and each database is respectively used to store the data processing results of the real-time processing modules corresponding to different task acquisition ranges.

S102、将原始数据转换成目的数据,以控制智能分析模块根据与任务请求信号相对应的算法对目的数据进行分析,得到分析结果。S102. Convert the original data into target data, so as to control the intelligent analysis module to analyze the target data according to the algorithm corresponding to the task request signal, and obtain an analysis result.

根据智能分析模块中对应任务请求信号的算法的算法要求,将原始数据进行汇总、过滤生成目的数据,并且控制智能分析模块根据与任务请求信号相对应的算法对目的数据进行分析,得到分析结果。According to the algorithm requirements of the algorithm corresponding to the task request signal in the intelligent analysis module, the original data is summarized and filtered to generate the target data, and the intelligent analysis module is controlled to analyze the target data according to the algorithm corresponding to the task request signal, and the analysis result is obtained.

在本申请实施例中,将原始数据进行汇总、过滤生成目的数据的方法优选的但不限于,通过直接调用数据库语句生成和/或通过输入参数,然后调用相应的数据库语句生成,发明人可以根据自己的需求任意设置生成方式,在此不再赘述。In the embodiment of this application, the method of summarizing and filtering the original data to generate the target data is preferably but not limited to, by directly calling the database statement generation and/or by inputting parameters, and then calling the corresponding database statement generation, the inventor can according to You can set the generation method arbitrarily according to your own needs, so I won't go into details here.

S103、将分析结果作为即时处理模块的参考值,返回给即时处理模块。S103. Return the analysis result to the instant processing module as a reference value of the instant processing module.

在本申请实施例中当控制智能分析模块根据与任务请求信号相对应的算法对目的数据进行分析得到分析结果以后,会将得到的分析结果作为即时处理模块的参考值,返回给即时处理模块,以使得即时处理模块根据接收到的参考值对数据进行处理。In the embodiment of the present application, when the control intelligence analysis module analyzes the target data according to the algorithm corresponding to the task request signal to obtain the analysis result, it will use the obtained analysis result as a reference value of the instant processing module and return it to the instant processing module. So that the real-time processing module processes the data according to the received reference value.

进一步的,本申请实施例提供的任务处理方法还包括:Further, the task processing method provided in the embodiment of the present application also includes:

在本申请实施例中,预先设置配置文件,配置文件中包括有至少一个任务以及分别与各个任务相关的属性,属性包括任务运行时间。逐一判断任务配置文件中的各个任务的属性中的任务运行时间是否与系统当前运行时间相同,当存在任务的任务运行时间与系统当前运行时间相同时,发送与任务相对应的任务请求信号,以便于对发送的任务请求信号进行响应并进行相应的任务处理。In this embodiment of the present application, a configuration file is preset, and the configuration file includes at least one task and attributes related to each task, and the attributes include task running time. Judge one by one whether the task running time in the attributes of each task in the task configuration file is the same as the current running time of the system, and when the task running time of the existing task is the same as the current running time of the system, send a task request signal corresponding to the task, so that It is used to respond to the sent task request signal and perform corresponding task processing.

进一步的,本申请实施例提供的任务处理方法还包括:Further, the task processing method provided in the embodiment of the present application also includes:

在本申请实施例中,任务的属性中还可以包括任务优先级这一属性,当任务配置文件中存在至少两个任务的任务运行时间与系统当前运行时间相同时,发送与任务优先级高的任务相对应的任务请求信号。In this embodiment of the application, the attribute of the task may also include the attribute of task priority. When there are at least two tasks in the task configuration file whose task running time is the same as the current running time of the system, the task priority is sent. The task request signal corresponding to the task.

当任务配置文件中存在至少两个任务的运行时间与系统当前运行时间相同,且存在的这至少两个任务的属性中均未设置任务优先级或设置的任务优先级相同时,则根据当前运行情况,自动选择一个任务执行。When the running time of at least two tasks in the task configuration file is the same as the current running time of the system, and the task priority is not set in the attributes of the at least two tasks or the set task priority is the same, then according to the current running time situation, automatically select a task to execute.

本申请实施例提供一种任务处理方法,首先利用即时处理模块中的实时数据和/或数据处理结果经过数据转换以及智能分析模块进行分析后,得到分析结果,然后在将得到的分析结果作为即时处理模块的参考值返回给即时处理模块,以供即时处理模块处理数据时使用,使得即时处理以及智能分析可以进行有效的调度和数据交互,进而保证了智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性。The embodiment of the present application provides a task processing method. First, the real-time data and/or data processing results in the real-time processing module are used for analysis by the data conversion and intelligent analysis module to obtain the analysis results, and then the obtained analysis results are used as real-time The reference value of the processing module is returned to the real-time processing module for use when the real-time processing module processes data, so that real-time processing and intelligent analysis can carry out effective scheduling and data interaction, thereby ensuring intelligent power consumption in multiple time scales and business scenarios. Timeliness and accuracy in the process.

实施例二:Embodiment two:

图2为本申请实施例二提供的一种任务处理装置结构示意图。FIG. 2 is a schematic structural diagram of a task processing device provided in Embodiment 2 of the present application.

如图2所示,该装置包括:原始数据获取模块1、控制分析模块2以及结果返回模块3,且原始数据获取模块1、控制分析模块2以及结果返回模块3依次相连接。As shown in Figure 2, the device includes: an original data acquisition module 1, a control analysis module 2 and a result return module 3, and the original data acquisition module 1, the control analysis module 2 and the result return module 3 are connected in sequence.

其中,原始数据获取模块1用于响应任务请求信号,分别在第一数据库以及第二数据库中获取与任务请求信号相对应的原始数据,其中,第一数据库用于存储实时数据,实时数据为即时处理模块接收到的终端采集设备实时发送的数据,第二数据库用于存储即时处理模块中的数据处理结果。Wherein, the original data acquisition module 1 is used to respond to the task request signal, and respectively acquires the original data corresponding to the task request signal in the first database and the second database, wherein, the first database is used to store real-time data, and the real-time data is real-time The processing module receives the data sent by the terminal collection device in real time, and the second database is used to store the data processing results in the real-time processing module.

控制分析模块2与原始数据获取模块1相连接,用于将原始数据转换成目的数据,以控制智能分析模块根据与任务请求信号相对应的算法对目的数据进行分析,得到分析结果,其中,目的数据符合智能分析模块中对应任务请求信号的算法的算法要求。The control analysis module 2 is connected with the original data acquisition module 1, and is used to convert the original data into target data, so as to control the intelligent analysis module to analyze the target data according to the algorithm corresponding to the task request signal, and obtain the analysis results, wherein, the target The data conforms to the algorithm requirements of the algorithm corresponding to the task request signal in the intelligent analysis module.

结果返回模块3与控制分析模块2相连接,用于将分析结果作为即时处理模块的参考值,返回给即时处理模块。The result return module 3 is connected with the control analysis module 2, and is used to return the analysis result to the immediate processing module as a reference value of the immediate processing module.

进一步的,本申请实施例提供的任务处理装置还包括:运行时间判断模块以及任务请求信号发送模块。Further, the task processing device provided in the embodiment of the present application further includes: a running time judging module and a task request signal sending module.

其中,运行时间判断模块用于逐一判断任务配置文件中的各个任务的属性中的任务运行时间是否与系统当前运行时间相同。Wherein, the running time judging module is used to judge one by one whether the task running time in the attribute of each task in the task configuration file is the same as the current running time of the system.

任务请求信号发送模块与运行时间判断模块相连接,用于当存在任务的任务运行时间与系统当前运行时间相同时,发送与任务相对应的任务请求信号。The task request signal sending module is connected with the running time judging module, and is used for sending a task request signal corresponding to the task when the task running time of the existing task is the same as the current running time of the system.

本申请实施例提供一种任务处理装置,包括:原始数据获取模块、控制分析模块以及结果返回模块,通过原始数据获取模块获取即时处理模块中的实时数据和/或数据处理结果,然后通过控制分析模块对实时数据和/或数据处理结果进行数据转换并控制智能分析模块对转换后的数据进行分析,得到分析结果,并通过结果返回模块将得到的分析结果作为即时处理模块的参考值返回即时处理模块,以供即时处理模块处理数据时使用,使得即时处理以及智能分析可以进行有效的调度和数据交互,进而保证了智能用电在多时间尺度以及业务场景处理过程中的时效性和准确性。An embodiment of the present application provides a task processing device, including: a raw data acquisition module, a control analysis module, and a result return module. The raw data acquisition module acquires real-time data and/or data processing results in the instant processing module, and then controls The module performs data conversion on the real-time data and/or data processing results and controls the intelligent analysis module to analyze the converted data to obtain the analysis results, and returns the obtained analysis results as the reference value of the instant processing module to the instant processing through the result return module The module is used by the real-time processing module to process data, so that real-time processing and intelligent analysis can carry out effective scheduling and data interaction, thereby ensuring the timeliness and accuracy of intelligent power consumption in multi-time scale and business scene processing.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.

以上仅是本申请的优选实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above are only preferred embodiments of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. a task processing method, it is characterised in that described task processing method processes for the task requests in intelligent power is performed task, and described task processing method includes:
Response task requests signal, the initial data corresponding with described task requests signal is obtained respectively in the first data base and/or the second data base, wherein, described first data base is used for storing real time data, described real time data is the data that the terminal acquisition that instant processing module receives sends in real time, and described second data base is for storing the data processed result in described instant processing module;Wherein, described instant processing module is used for processing real time data, flow of event;
Convert described initial data to purpose data, according to the algorithm corresponding with described task requests signal, described purpose data are analyzed controlling intelligent analysis module, obtain analyzing result, wherein, the algorithm requirement of the algorithm of corresponding task requests signal in described purpose data fit intelligent analysis module;Wherein, described intelligent analysis module is for highly excavating historical data;
Using the described analysis result reference value as described instant processing module, return to described instant processing module.
2. method according to claim 1, it is characterised in that pre-setting task configuration file, include at least one task and attribute relevant to each task respectively in described task configuration file, described attribute includes Runtime,
The method also includes:
Judge that whether the Runtime in the attribute of each task in described task configuration file is identical with system current run time one by one;
When the Runtime that there is task is identical with system current run time, send the task requests signal corresponding with described task.
3. method according to claim 2, it is characterised in that described attribute includes task priority,
The method also includes:
When the Runtime that there is at least two task is identical with system current run time, send the task requests signal that the task high with task priority is corresponding.
4. method according to claim 1, it is characterised in that convert described initial data to purpose data, wherein, the algorithm requirement of the algorithm of corresponding task requests signal in described purpose data fit intelligent analysis module, including:
The algorithm requirement of the algorithm according to described task requests signal corresponding in intelligent analysis module, is undertaken described initial data collecting, filtering generation purpose data.
5. method according to claim 3, it is characterised in that the generation process of described first data base is:
Setting a task and the attribute relevant to described task in described task configuration file, described attribute includes the Runtime corresponding with the memory space of instant processing module and task run frequency;
According to described Runtime and task run frequency, obtain the real time data in instant processing module;Described real time data is the data that the terminal acquisition that described instant processing module receives sends in real time;
The described real time data got is stored, generates the first data base.
6. method according to claim 3, it is characterised in that the generation process of described second data base is:
Setting a task and the attribute relevant to described task in described task configuration file, described attribute includes Runtime, task obtains scope and task run frequency,
According to described Runtime and task run frequency, obtain the data processed result obtaining the corresponding instant processing module of scope with described task;
The described data processed result got is stored, generates the second data base.
7. method according to claim 6, it is characterised in that also include: be provided with at least one second data base, described each data base is respectively used to store the data processed result obtaining the corresponding instant processing module of scope from different tasks.
8. the method according to claim 1-7 any one, it is characterised in that described terminal acquisition is for can interrupt terminal acquisition and/or can not interrupt terminal acquisition.
9. a Task Processing Unit, it is characterised in that described Task Processing Unit processes for the task requests in intelligent power is performed task, and described Task Processing Unit includes: initial data acquisition module, control analysis module and result return module, wherein,
Described initial data acquisition module is used for responding task requests signal, the initial data corresponding with described task requests signal is obtained respectively in the first data base and the second data base, wherein, described first data base is used for storing real time data, described real time data is the data that the terminal acquisition that instant processing module receives sends in real time, and described second data base is for storing the data processed result in described instant processing module;Wherein, described instant processing module is used for processing real time data, flow of event;
Described control analysis module is connected with described initial data acquisition module, for converting described initial data to purpose data, according to the algorithm corresponding with described task requests signal, described purpose data are analyzed controlling intelligent analysis module, obtain analyzing result, wherein, the algorithm requirement of the algorithm of corresponding task requests signal in described purpose data fit intelligent analysis module;Wherein, described intelligent analysis module is for highly excavating historical data;
Described result returns module and is connected with described control analysis module, is used for, using the described analysis result reference value as described instant processing module, returning to described instant processing module.
10. device according to claim 9, it is characterised in that being previously provided with task configuration file, include at least one task and attribute relevant to each task respectively in described task configuration file, described attribute includes Runtime,
This device also includes: run time judgment module and task requests signal transmitting module, wherein,
Described operation time judgment module is for judging that whether the Runtime in the attribute of each task in described task configuration file is identical with system current run time one by one;
Described task requests signal transmitting module is connected with described operation time judgment module, for when the Runtime that there is task is identical with system current run time, sending the task requests signal corresponding with described task.
CN201310616600.6A 2013-11-27 2013-11-27 A kind of task processing method and device Active CN103617493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310616600.6A CN103617493B (en) 2013-11-27 2013-11-27 A kind of task processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310616600.6A CN103617493B (en) 2013-11-27 2013-11-27 A kind of task processing method and device

Publications (2)

Publication Number Publication Date
CN103617493A CN103617493A (en) 2014-03-05
CN103617493B true CN103617493B (en) 2016-07-27

Family

ID=50168197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310616600.6A Active CN103617493B (en) 2013-11-27 2013-11-27 A kind of task processing method and device

Country Status (1)

Country Link
CN (1) CN103617493B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108182A (en) * 2017-12-18 2018-06-01 北京像素软件科技股份有限公司 Game version production method and device
CN110245127A (en) * 2019-06-12 2019-09-17 成都九洲电子信息系统股份有限公司 A kind of data migration method based on Row control

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5708590A (en) * 1995-04-17 1998-01-13 Siemens Energy & Automation, Inc. Method and apparatus for real time recursive parameter energy management system
WO2004008375A1 (en) * 2002-07-16 2004-01-22 Matsushita Electric Corporation Of America Atomic self-healing architecture
US6754597B2 (en) * 2000-03-10 2004-06-22 Abb Schweiz Ag Method and device for assessing the stability of an electric power transmission network
CN101901422A (en) * 2010-04-27 2010-12-01 夏辰安 Real-time on-line monitoring and management system for power system
CN101968525A (en) * 2010-10-09 2011-02-09 杭州市电力局 Fault positioning method for power distribution network by combining simulation calculation and real-time monitoring
CN102053202A (en) * 2009-11-10 2011-05-11 北京博电新力电力系统仪器有限公司 Smart grid-oriented power quality monitoring system and method
CN102646228A (en) * 2012-02-23 2012-08-22 天津市电力公司 Multi-service real-time data integrated processing system and method for smart grid
CN102938588A (en) * 2012-12-10 2013-02-20 上海市电力公司 Intelligent power grid safety and stability early-warning and control system
CN103150599A (en) * 2013-03-07 2013-06-12 江苏大学 Electric energy quality data monitoring and management system model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5708590A (en) * 1995-04-17 1998-01-13 Siemens Energy & Automation, Inc. Method and apparatus for real time recursive parameter energy management system
US6754597B2 (en) * 2000-03-10 2004-06-22 Abb Schweiz Ag Method and device for assessing the stability of an electric power transmission network
WO2004008375A1 (en) * 2002-07-16 2004-01-22 Matsushita Electric Corporation Of America Atomic self-healing architecture
CN102053202A (en) * 2009-11-10 2011-05-11 北京博电新力电力系统仪器有限公司 Smart grid-oriented power quality monitoring system and method
CN101901422A (en) * 2010-04-27 2010-12-01 夏辰安 Real-time on-line monitoring and management system for power system
CN101968525A (en) * 2010-10-09 2011-02-09 杭州市电力局 Fault positioning method for power distribution network by combining simulation calculation and real-time monitoring
CN102646228A (en) * 2012-02-23 2012-08-22 天津市电力公司 Multi-service real-time data integrated processing system and method for smart grid
CN102938588A (en) * 2012-12-10 2013-02-20 上海市电力公司 Intelligent power grid safety and stability early-warning and control system
CN103150599A (en) * 2013-03-07 2013-06-12 江苏大学 Electric energy quality data monitoring and management system model

Also Published As

Publication number Publication date
CN103617493A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
Wei et al. MVR: An architecture for computation offloading in mobile edge computing
CN104065741B (en) Data collecting system and collecting method
CN107871164A (en) A Personalized Deep Learning Method for Fog Computing Environment
Wieland et al. Towards situation-aware adaptive workflows: SitOPT—A general purpose situation-aware workflow management system
JP2023511327A (en) Model training method and apparatus
Cheng et al. Geelytics: Enabling on-demand edge analytics over scoped data sources
US20220100566A1 (en) Metrics-based scheduling for hardware accelerator resources in a service mesh environment
CN110908641A (en) Visualization-based stream computing platform, method, device and storage medium
CN103488691A (en) Task scheduling device and task scheduling method
CN110134711A (en) Big data processing method, device, equipment and computer-readable storage medium
CN111352806A (en) Log data monitoring method and device
CN108566408A (en) Service processing method, device and storage medium
CN114201278A (en) Task processing method, task processing device, electronic device, and storage medium
CN105589748A (en) Service request processing method and apparatus
EP4046016A1 (en) System, device, method and datastack for managing applications that manage operation of assets
US10452402B2 (en) Operation instruction response control method and terminal for human-machine interface
CN110851228A (en) System and method for visual orchestration and processing of complex events
CN110502719A (en) Edge calculations model management system and method
CN105049485A (en) Real-time video processing oriented load-aware cloud calculation system
JP2020535501A (en) Target recognition method, device and intelligent terminal
CN110908789A (en) Visual data configuration method and system for multi-source data processing
CN110781180A (en) Data screening method and data screening device
CN103617493B (en) A kind of task processing method and device
CN112908321A (en) Device control method, device, storage medium, and electronic apparatus
CN105785962A (en) Workshop material delivery control and manage platform based on UWB

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING FIBRLINK COMMUNICATIONS CO., LTD. STATE GR

Free format text: FORMER OWNER: BEIJING FIBRLINK COMMUNICATIONS CO., LTD. STATE GRID CORPORATION OF CHINA

Effective date: 20141106

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20141106

Address after: 100070 Fengtai District, Feng Feng Road, No. 1, the era of fortune World Building, floor, layer 28, Beijing

Applicant after: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Applicant after: Beijing Zhongdian Feihua Communications Co.,Ltd.

Applicant after: State Grid Corporation of China

Applicant after: STATE GRID ZHEJIANG ELECTRIC POWER Co.

Address before: 100070 Fengtai District, Feng Feng Road, No. 1, the era of fortune World Building, floor, layer 28, Beijing

Applicant before: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Applicant before: Beijing Zhongdian Feihua Communications Co.,Ltd.

Applicant before: State Grid Corporation of China

C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100070 Times Fortune Tiandi Building, No. 1 Hangfeng Road, Fengtai District, Beijing, 28 Floors

Co-patentee after: Beijing Zhongdian Feihua Communications Co.,Ltd.

Patentee after: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Co-patentee after: STATE GRID CORPORATION OF CHINA

Co-patentee after: STATE GRID ZHEJIANG ELECTRIC POWER Co.,Ltd.

Address before: 100070 Times Fortune Tiandi Building, No. 1 Hangfeng Road, Fengtai District, Beijing, 28 Floors

Co-patentee before: Beijing Zhongdian Feihua Communications Co.,Ltd.

Patentee before: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Co-patentee before: State Grid Corporation of China

Co-patentee before: STATE GRID ZHEJIANG ELECTRIC POWER Co.

TR01 Transfer of patent right

Effective date of registration: 20190617

Address after: 100070 Times Fortune Tiandi Building, No. 1 Hangfeng Road, Fengtai District, Beijing, 28 Floors

Co-patentee after: STATE GRID CORPORATION OF CHINA

Patentee after: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Co-patentee after: STATE GRID ZHEJIANG ELECTRIC POWER Co.,Ltd.

Address before: 100070 Times Fortune Tiandi Building, No. 1 Hangfeng Road, Fengtai District, Beijing, 28 Floors

Co-patentee before: Beijing Zhongdian Feihua Communications Co.,Ltd.

Patentee before: BEIJING GUODIANTONG NETWORK TECHNOLOGY Co.,Ltd.

Co-patentee before: STATE GRID CORPORATION OF CHINA

Co-patentee before: STATE GRID ZHEJIANG ELECTRIC POWER Co.,Ltd.

TR01 Transfer of patent right