WO2019141133A1 - Task processing method, device and machine readable medium - Google Patents

Task processing method, device and machine readable medium Download PDF

Info

Publication number
WO2019141133A1
WO2019141133A1 PCT/CN2019/071356 CN2019071356W WO2019141133A1 WO 2019141133 A1 WO2019141133 A1 WO 2019141133A1 CN 2019071356 W CN2019071356 W CN 2019071356W WO 2019141133 A1 WO2019141133 A1 WO 2019141133A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
resource
time zone
information
target
Prior art date
Application number
PCT/CN2019/071356
Other languages
French (fr)
Chinese (zh)
Inventor
张訾鹏
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019141133A1 publication Critical patent/WO2019141133A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Operations Research (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A task processing method, device and machine readable medium, the method particularly comprising: providing a resource, and time zone information corresponding to the resource (201); acquiring a task (202); according to corresponding target time zone information of the task, determining, from the resource, a corresponding target resource of the task; the target time zone representing that task processing in the time zone of the task can be done at the current time (203); and using the target resource to process the task (204). The method can reduce delays in task processing and increase task processing efficiency.

Description

任务处理方法、装置和机器可读介质Task processing method, device and machine readable medium
本申请要求2018年01月19日递交的申请号为201810054989.2、发明名称为“任务处理方法、装置和机器可读介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. PCT Application No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No.
技术领域Technical field
本申请涉及互联网技术领域,特别是涉及一种任务处理方法、装置和机器可读介质。The present application relates to the field of Internet technologies, and in particular, to a task processing method, apparatus, and machine readable medium.
背景技术Background technique
随着互联网技术的发展,用户可以通过各种终端接入互联网,并通过互联网进行各种业务,如购买商品、银行缴费、即时通讯等。并且,为了提高业务的服务质量,可以建立客户服务系统,通过该客户服务系统为客户解决业务前、业务中、业务后的各种问题。With the development of Internet technology, users can access the Internet through various terminals and conduct various services through the Internet, such as purchasing goods, bank payment, instant messaging, and the like. Moreover, in order to improve the service quality of the service, a customer service system can be established, and the customer service system can solve various problems before, during, and after the business.
现有的客户服务系统通常具备区域性,上述区域的粒度可以为国家、城市等。一个区域的客户服务系统可以针对该区域内的业务问题(如业务咨询、业务纠纷等问题)提供客户服务,其提供客户服务的过程可以包括:接收用户提交的服务请求,生成该服务请求对应的服务任务,并通过该区域内的客服人员对该服务任务进行处理。Existing customer service systems are usually regional, and the granularity of the above regions can be national, urban, and the like. A regional customer service system can provide customer service for business problems in the region (such as business consulting, business disputes, etc.), and the process of providing customer service can include: receiving a service request submitted by the user, and generating a corresponding service request. Service tasks and process the service tasks through customer service personnel in the area.
然而,在实际应用中,一个区域内的客服人员通常具有特定的工作时间,这样,对于非工作时间内接收的服务请求而言,其对应的服务任务通常被延迟处理(如延迟到次日的工作时间内处理),上述延迟处理降低了服务请求的响应性能,进而影响了服务体验。However, in practical applications, the agent in an area usually has a specific working time, so that for a service request received during non-working hours, the corresponding service task is usually delayed (for example, delayed to the next day). During processing time, the above delay processing reduces the response performance of the service request, which in turn affects the service experience.
发明内容Summary of the invention
鉴于上述问题,本申请一实施例提出一种任务处理方法、任务处理装置和装置,以解决现有技术存在的问题。In view of the above problems, an embodiment of the present application provides a task processing method, a task processing apparatus, and an apparatus to solve the problems existing in the prior art.
为了解决上述问题,本申请一实施例公开一种任务处理方法,包括:提供资源、以及所述资源对应的时区信息;获取任务;依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;利用所述目标资源处理所述任务。In order to solve the above problem, an embodiment of the present application discloses a task processing method, including: providing a resource, and time zone information corresponding to the resource; acquiring a task; determining, according to the target time zone information corresponding to the task, from the resource. a target resource corresponding to the task; the target time zone is used to represent a time zone in which the current time can process the task; and the task is processed by using the target resource.
为了解决上述问题,本申请一实施例还公开一种任务处理装置,包括:In order to solve the above problem, an embodiment of the present application further discloses a task processing apparatus, including:
第一提供模块,用于提供资源、以及所述资源对应的时区信息;a first providing module, configured to provide a resource, and time zone information corresponding to the resource;
任务获取模块,用于获取任务;a task acquisition module for acquiring a task;
目标资源确定模块,用于依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;以及a target resource determining module, configured to determine, according to the target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone in which the current time can process the task;
任务处理模块,用于利用所述目标资源处理所述任务。a task processing module for processing the task with the target resource.
为解决上述问题,本申请一实施例还公开一种装置,包括:In order to solve the above problem, an embodiment of the present application further discloses an apparatus, including:
一个或多个处理器;和One or more processors; and
其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行前述一个或多个所述的方法。One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform one or more of the methods described above.
为解决上述问题,本申请一实施例还公开一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行前述一个或多个所述的方法。In order to solve the above problems, an embodiment of the present application further discloses one or more machine readable mediums having stored thereon instructions that, when executed by one or more processors, cause the apparatus to perform one or more of the methods described above .
由上述可知,本申请实施例提出的任务处理方法、装置和装置至少具有以下优点:It can be seen from the above that the task processing method, apparatus and device proposed by the embodiments of the present application have at least the following advantages:
本申请实施例中任务对应的目标时区可用于表征当前时间能够处理所述任务的时区,资源对应的时区信息可用于表征资源所处的时区,这样,可以将任务对应的目标时区内的资源作为任务对应的目标资源,进而可以利用所述目标资源处理所述任务;由于本申请实施例可以利用当前时间能够处理所述任务的时区内的资源,对任务进行处理,因此可以降低任务的处理延迟,以及可以提高任务的处理效率。在上述任务为服务任务的情况下,本申请实施例可以降低服务任务的服务周期、提高服务任务的响应性能,且可以提升用户的服务体验。The target time zone corresponding to the task in the embodiment of the present application may be used to represent the time zone in which the current time can process the task, and the time zone information corresponding to the resource may be used to represent the time zone in which the resource is located, so that the resource in the target time zone corresponding to the task may be used as the resource in the target time zone corresponding to the task. The target resource corresponding to the task, and the task can be processed by using the target resource; since the current time can process the resource in the time zone of the task and process the task, the processing delay of the task can be reduced. And can improve the processing efficiency of the task. In the case that the foregoing task is a service task, the embodiment of the present application can reduce the service period of the service task, improve the response performance of the service task, and improve the service experience of the user.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1是本申请实施例的一种任务处理方法的应用环境的示意图;1 is a schematic diagram of an application environment of a task processing method according to an embodiment of the present application;
图2是本申请的一种任务处理方法实施例一的步骤流程图;2 is a flow chart showing the steps of a first embodiment of a task processing method according to the present application;
图3是本申请的一种任务处理方法实施例二的步骤流程图;3 is a flow chart of steps of a second embodiment of a task processing method according to the present application;
图4是本申请的一种任务处理方法实施例三的步骤流程图;4 is a flow chart showing the steps of the third embodiment of the task processing method of the present application;
图5是本申请的一种任务处理方法实施例四的步骤流程图;5 is a flow chart showing the steps of a fourth embodiment of a task processing method according to the present application;
图6是本申请的一种任务处理方法实施例五的步骤流程图;6 is a flow chart showing the steps of Embodiment 5 of a task processing method of the present application;
图7是本申请的一种任务处理装置实施例的结构框图;7 is a structural block diagram of an embodiment of a task processing apparatus of the present application;
图8是本申请的另一种任务处理装置实施例的结构框图;以及8 is a structural block diagram of another embodiment of a task processing apparatus of the present application;
图9是本申请一实施例提供的装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application are within the scope of the present disclosure.
本申请的构思易于进行各种修改和替代形式,其具体实施例已经通过附图的方式示出,并将在这里详细描述。然而,应该理解,上述内容并不是用来将本申请的构思限制为所公开的具体形式,相反地,本申请的说明书和附加权利要求书意欲覆盖所有的修改、等同和替代的形式。The concept of the present application is susceptible to various modifications and alternative forms, and the specific embodiments thereof are illustrated by the accompanying drawings and will be described in detail herein. It should be understood, however, that the invention is not intended to be limited to the details of the invention.
本说明书中的“一个实施例”,“实施例”,“一个具体实施例”等,表示所描述的实施例可以包括特定特征、结构或特性,但是每个实施例可以包括或可以不必然包括该特定特征、结构或特性。此外,这样的短语不一定指的是同一实施例。另外,在联系一个实施例描述特定特征、结构或特性的情况下,无论是否明确描述,可以认为本领域技术人员所知的范围内,这样的特征、结构或特性也与其他实施例有关。另外,应该理解的是,“在A,B和C的至少一个”这种形式所包括的列表中的条目中,可以包括如下可能的项目:(A);(B);(C);(A和B);(A和C);(B和C);或(A,B和C)。同样,“A,B或C中的至少一个”这种形式列出的项目可能意味着(A);(B);(C);(A和B);(A和C);(B和C);或(A,B和C)。In the present specification, "one embodiment", "an embodiment", "a specific embodiment" or the like means that the described embodiments may include specific features, structures or characteristics, but each embodiment may or may not include This particular feature, structure or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. In addition, where a particular feature, structure, or characteristic is described in connection with an embodiment, such features, structures, or characteristics may be considered to be within the scope of those skilled in the art. In addition, it should be understood that the items in the list included in the form "at least one of A, B, and C" may include the following possible items: (A); (B); (C); A and B); (A and C); (B and C); or (A, B and C). Similarly, items listed in the form "at least one of A, B or C" may mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B and C).
在一些情况下,所公开的实施例可以被实施为硬件、固件、软件或其任意组合。所公开的实施例也可以实现为携带或存储在一个或多个暂时的或者非暂时的机器可读(例如计算机可读)存储介质中的指令,该指令可以被一个或多个处理器执行。机器可读存储介质可以实施为用于以能够被机器读取的形式存储或者传输信息的存储装置、机构或其他物理结构(例如易失性或非易失性存储器、介质盘、或其他媒体其它物理结构装置)。In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored in one or more temporary or non-transitory machine-readable (eg, computer readable) storage media, which can be executed by one or more processors. A machine-readable storage medium may be implemented as a storage device, mechanism, or other physical structure (eg, volatile or nonvolatile memory, media disk, or other media) for storing or transmitting information in a form that can be read by a machine. Physical structure device).
在附图中,一些结构或方法特征可以以特定的安排和/或排序显示。然而,优选地, 这样的具体安排和/或排序并不是必要的。相反,在一些实施方案中,这样的特征可以以不同的方式和/或顺序排列,而不是如附图中所示。此外,特定的附图中的结构或方法特征中所包含的内容,不意味着暗示这种特征是在所有实施例是必须的,并且在一些实施方案中,可能不包括这些特征,或者可能将这些特征与其它特征相结合。In the figures, some structural or method features may be shown in a particular arrangement and/or order. Preferably, however, such specific arrangements and/or rankings are not necessary. Rather, in some embodiments, such features may be arranged in different ways and/or sequences, rather than as shown in the drawings. In addition, what is included in a structural or method feature in a particular drawing is not meant to imply that such feature is required in all embodiments, and in some embodiments may not include these features or may These features are combined with other features.
假设任务A的生成时间为:北京时间24:00,则现有方案会通过任务A所属区域的客户服务系统,对任务A进行处理;假设任务A所属区域为北京或者中国,由于北京或中国一天的工作时间范围为08:00~18:00,而北京时间24:00不在北京或中国的工作时间范围内,因此将导致任务A被延迟处理,通常任务A的处理时间被延迟到第二天的工作时间范围内。Assume that the generation time of task A is: 24:00 Beijing time, the existing plan will process task A through the customer service system of the area to which task A belongs; assume that the area of task A belongs to Beijing or China, due to Beijing or China one day. The working time range is from 08:00 to 18:00, while Beijing time 24:00 is not in the working hours of Beijing or China, so the task A will be delayed. Usually, the processing time of task A is delayed until the next day. Within the working time range.
本申请实施例提供了一种任务处理方法,该方法具体包括:提供资源、以及所述资源对应的时区(Time Zone)信息;获取任务;依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;以及利用所述目标资源处理所述任务。An embodiment of the present application provides a task processing method, where the method specifically includes: providing a resource, and time zone information corresponding to the resource; acquiring a task; and using the target time zone information corresponding to the task, from the resource Determining a target resource corresponding to the task; the target time zone is used to represent a time zone in which the current time can process the task; and processing the task by using the target resource.
本申请实施例中,任务可用于封装业务逻辑的处理过程。业务逻辑可用于实现业务功能,如服务功能、提交订单功能、取消订单功能等,本申请实施例对于具体的业务逻辑不加以限制。任务的例子可以包括:服务任务,该服务任务可以为依据用户输入的服务请求得到,可以理解,本领域技术人员可以根据实际的业务逻辑处理过程,确定对应的任务,本申请实施例对于具体的任务不加以限制。In the embodiment of the present application, the task can be used to encapsulate the processing process of the business logic. The business logic can be used to implement the business function, such as the service function, the submit order function, the cancel order function, etc., and the embodiment of the present application does not limit the specific business logic. An example of the task may include: a service task, which may be obtained according to a service request input by a user. It can be understood that a person skilled in the art can determine a corresponding task according to an actual business logic processing process. The task is not limited.
本申请实施例中,时区是地球上的区域使用同一个时间定义。为了克服时间上的混乱,1884年在华盛顿召开的一次国际经度会议上,规定将全球划分为24个时区(东、西各12个时区)。规定英国(格林尼治天文台旧址)为中时区(零时区)、东1-12区,西1-12区。每个时区横跨经度15度,时间正好是1小时。最后的东、西第12区各跨经度7.5度,以东、西经180度为界。每个时区的中央经线上的时间就是这个时区内统一采用的时间,称为区时,相邻两个时区的时间相差1小时。例如,中国东8区的时间总比泰国东7区的时间早1小时,而比日本东9区的时间晚1小时。In the embodiment of the present application, the time zone is the same time definition of the region on the earth. In order to overcome the chaos of time, at the International Longitude Conference held in Washington in 1884, the world was divided into 24 time zones (12 time zones in East and West). The United Kingdom (the former site of the Greenwich Observatory) is defined as the Central Time Zone (Zero Time Zone), East 1-12 Zone, and West 1-12 Zone. Each time zone spans 15 degrees of longitude and the time is exactly 1 hour. The last East and West 12th districts each have a longitude of 7.5 degrees and are bounded by 180 degrees east and west. The time on the central meridian of each time zone is the time uniformly used in this time zone. When it is called zone, the time difference between two adjacent time zones is 1 hour. For example, the time in the East 8th district of China is one hour earlier than the time in the East 7th district of Thailand, and one hour later than the time in the East 9th district of Japan.
为了提高任务的响应性能,本申请实施例对任务赋予时区属性,具体地,任务可以对应有目标时区,该目标时区可用于表征当前时间能够处理任务的时区,也即,当前时间哪些时区的地区在工作或者上班,则可以将这些时区作为任务对应的目标时区。其中,当前时间可以指任务的生成时间对应的时间。可选地,当前时间可以位于任务的生成时 间对应的时间段内,该时间段可以为[T1,T2],其中,T1表示任务的生成时间,T2与T1的差值绝对值可以指时间段的长度,该时间段的长度可由本领域技术人员根据实际应用需求确定。In order to improve the responsiveness of the task, the embodiment of the present application assigns a time zone attribute to the task. Specifically, the task may correspond to a target time zone, where the target time zone may be used to represent the time zone in which the current time can process the task, that is, the time zone of the current time zone. At work or at work, these time zones can be used as the target time zone for the task. The current time may refer to a time corresponding to the generation time of the task. Optionally, the current time may be located in a time period corresponding to the generation time of the task, where the time period may be [T1, T2], where T1 represents the generation time of the task, and the absolute value of the difference between T2 and T1 may refer to the time period. The length of the time period can be determined by a person skilled in the art according to actual application requirements.
可选地,可以依据任务的生成时间确定任务对应的目标时区,具体地,可以将任务的生成时间对应的当前工作时区,作为任务对应的目标时区。例如,任务A的生成时间为:北京时间24:00,假设将北京时间24:00作为当前时间,则西1区、西2区、西3区、西5区、西6区、西7区对应的当前时间分别为15点、14点、13点、11点、10点、9点,假设一天的工作时间范围可以为08:00~18:00,故可以认为西1区、西2区、西3区、西5区、西6区、西7区对应的当前时间处于工作时间范围内,因此,可以确定任务A对应的目标时区包括:西1区、西2区、西3区、西5区、西6区、西7区等。可以理解,上述确定任务对应的目标时区的方式只是作为示例,实际上本领域技术人员可以根据实际应用需求,采用任意方式确定任务对应的目标时区,本申请实施例对于任务对应的目标时区的具体过程不加以限制。Optionally, the target time zone corresponding to the task may be determined according to the generation time of the task. Specifically, the current working time zone corresponding to the generation time of the task may be used as the target time zone corresponding to the task. For example, the generation time of task A is: 24:00 Beijing time, assuming that Beijing time 24:00 is the current time, then West 1 District, West 2 District, West 3 District, West 5 District, West 6 District, West 7 District The corresponding current time is 15 points, 14 points, 13 points, 11 points, 10 points, 9 points, assuming that the working time range of one day can be from 08:00 to 18:00, so it can be considered that the West 1 area and the West 2 area The current time corresponding to the West 3 area, the West 5 area, the West 6 area, and the West 7 area is within the working time range. Therefore, it can be determined that the target time zone corresponding to the task A includes: West 1 area, West 2 area, West 3 area, West 5th District, West 6th District, West 7th District, etc. It can be understood that the manner of determining the target time zone corresponding to the task is only an example. In fact, a person skilled in the art can determine the target time zone corresponding to the task in any manner according to the actual application requirement, and the specific time zone corresponding to the task in the embodiment of the present application is The process is not limited.
本申请实施例中,资源可用于进行任务处理。资源具体可以指一定区域内拥有的物力、财力、人力等各种物质要素的总称。可选地,上述资源包括:人力资源和/或计算机资源。人力资源可以包括:用于提供服务的工作人员。计算机资源可以包括:计算机集群资源,如计算机集群中的计算节点等。或者,计算机资源可以包括:计算机系统的资源,上述计算机系统的资源可以包括:计算机硬件资源,如IO(输入输出,Input Output)资源、CPU资源、存储资源等,上述计算机资源还可以包括:计算机软件资源或者数据资源等。In the embodiment of the present application, resources can be used for task processing. The resource specificity can refer to the general term for various material elements such as material, financial, and human resources in a certain area. Optionally, the foregoing resources include: human resources and/or computer resources. Human resources can include: staff used to provide services. Computer resources may include: computer cluster resources, such as compute nodes in a computer cluster. Alternatively, the computer resource may include: a resource of the computer system, where the resource of the computer system may include: a computer hardware resource, such as an IO (Input Output) resource, a CPU resource, a storage resource, etc., and the computer resource may further include: a computer Software resources or data resources, etc.
可以理解,任意的可用于进行任务处理的资源均在本申请实施例的资源的保护范围之内,本申请实施例对于具体的资源不加以限制。本申请实施例主要以人力资源为例对任务处理方法进行介绍,其他资源对应的任务处理方法相互参照即可。It is to be understood that any resource that can be used for task processing is within the scope of the resources of the embodiments of the present application. The embodiments of the present application do not limit the specific resources. The embodiment of the present application mainly introduces a task processing method by using human resources as an example, and the task processing methods corresponding to other resources can refer to each other.
为了提高任务的响应性能,本申请实施例的资源可以对应有时区信息,该时区信息可用于表征资源所处的时区。可选地,可以依据资源所在的地理位置,确定资源对应的时区信息,可以理解,本申请实施例对于资源对应的时区信息的具体确定方式不加以限制。In order to improve the response performance of the task, the resources in the embodiment of the present application may correspond to the time zone information, and the time zone information may be used to represent the time zone in which the resource is located. Optionally, the time zone information corresponding to the resource may be determined according to the geographic location where the resource is located. It may be understood that the specific determining manner of the time zone information corresponding to the resource is not limited in the embodiment of the present application.
综上,本申请实施例中任务对应的目标时区可用于表征当前时间能够处理所述任务的时区,资源对应的时区信息可用于表征资源所处的时区,这样,可以依据任务对应的目标时区,将任务对应的目标时区内的资源作为任务对应的目标资源,进而可以利用所 述目标资源处理所述任务;由于本申请实施例可以利用当前时间能够处理所述任务的时区内的资源,对任务进行处理,因此可以降低任务的处理延迟,以及可以提高任务的处理效率。在上述任务为服务任务的情况下,本申请实施例可以降低服务任务的服务周期、提高服务任务的响应性能,且可以提升用户的服务体验。In summary, the target time zone corresponding to the task in the embodiment of the present application may be used to represent the time zone in which the current time can process the task, and the time zone information corresponding to the resource may be used to represent the time zone in which the resource is located, so that the target time zone corresponding to the task may be used. The resource in the target time zone corresponding to the task is used as the target resource corresponding to the task, and the task can be processed by using the target resource; for the current application time, the resource in the time zone of the task can be processed by using the current time. Processing, so you can reduce the processing delay of the task, and can improve the processing efficiency of the task. In the case that the foregoing task is a service task, the embodiment of the present application can reduce the service period of the service task, improve the response performance of the service task, and improve the service experience of the user.
在本申请实施例的一种应用示例中,假设任务A的生成时间为:北京时间24:00,假设将北京时间24:00作为当前时间,假设一天的工作时间范围可以为08:00~18:00,则可以确定任务A对应的目标时区包括:西1区、西2区、西3区、西5区、西6区、西7区等,也即,当前时间位于任务A对应的目标时区的工作时间范围内;进一步,可以根据任务A对应的目标时区,将任务A对应的目标时区内的资源作为任务A对应的目标资源,并利用该目标资源处理任务A。例如,任务A对应的目标资源可以为西1区内的工作人员A-1等,由于当前时间位于西1区内的工作人员A-1的工作时间范围内,故西1区内的工作人员A-1可以在当前时间处理任务A,因此,可以降低任务的处理延迟,以及可以提高任务的处理效率。In an application example of the embodiment of the present application, it is assumed that the generation time of task A is: Beijing time 24:00, assuming Beijing time 24:00 as the current time, assuming that the working time range of one day can be 08:00-18 :00, it can be determined that the target time zone corresponding to task A includes: West 1 area, West 2 area, West 3 area, West 5 area, West 6 area, West 7 area, etc., that is, the current time is located in the target corresponding to task A In the working time range of the time zone, further, the resource in the target time zone corresponding to the task A may be used as the target resource corresponding to the task A according to the target time zone corresponding to the task A, and the task A may be processed by using the target resource. For example, the target resource corresponding to task A may be the staff A-1 in the west 1 area, and the staff in the west 1 area is located in the working time range of the staff A-1 in the west 1 area. A-1 can process task A at the current time, so the processing delay of the task can be reduced, and the processing efficiency of the task can be improved.
本申请实施例可以应用于APP(应用程序,Application)、网站等具有业务功能的平台环境中,以提高业务功能的实现效率。The embodiment of the present application can be applied to an application environment, such as an application (application), a website, and the like, to improve the implementation efficiency of the business function.
本发明实施例提供的任务处理方法可应用于图1所示的应用环境中,如图1所示,客户端100与服务器200位于有线或无线网络中,通过该有线或无线网络,客户端100与服务器200进行数据交互。The task processing method provided by the embodiment of the present invention can be applied to the application environment shown in FIG. 1. As shown in FIG. 1, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 is connected through the wired or wireless network. Data interaction with the server 200.
在实际应用中,客户端100可以接收用户输入的请求,并向服务器200发送该请求。而服务器200可以生成该请求对应的任务,并通过执行本申请实施例的任务处理方法,对该任务进行处理。In an actual application, the client 100 can receive a request entered by the user and send the request to the server 200. The server 200 can generate a task corresponding to the request, and process the task by executing the task processing method in the embodiment of the present application.
当然,上述依据用户输入的请求、生成任务的方式只是作为示例,实际上,本申请实施例对于具体的任务、以及任务的具体生成过程不加以限制。另外,上述通过服务器200执行本申请实施例的任务处理方法只是作为示例,实际上,本申请实施例对于任务处理方法的具体执行主体不加以限制。Of course, the foregoing method for generating a task according to the user input is only an example. In fact, the specific embodiment of the present application does not limit the specific task and the specific generation process of the task. In addition, the above-described task processing method of the embodiment of the present application is performed by the server 200 as an example. In fact, the embodiment of the present application does not limit the specific execution subject of the task processing method.
方法实施例一 Method embodiment 1
参照图2,示出了本发明的一种任务处理方法实施例一的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2, a flow chart of the steps of the first embodiment of the task processing method of the present invention is shown, which may specifically include the following steps:
步骤201、提供资源、以及所述资源对应的时区信息;Step 201: Provide a resource, and time zone information corresponding to the resource.
步骤202、获取任务;Step 202: Acquire a task.
步骤203、依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;Step 203: Determine, according to target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone that can process the task at a current time;
步骤204、利用所述目标资源处理所述任务。Step 204: Process the task by using the target resource.
步骤201中,本申请实施例提供的资源可以为全球范围内的资源,且该资源可以对应有时区信息。该时区信息可用于表征资源所处的时区。可选地,可以依据资源所在的地理位置,确定资源对应的时区信息,例如,资源A所在的地理位置为北京,则可以确定资源A对应的时区信息为:东8区。可以理解,本申请实施例对于资源对应的时区信息的具体确定方式不加以限制。In step 201, the resource provided by the embodiment of the present application may be a global resource, and the resource may correspond to the time zone information. This time zone information can be used to characterize the time zone in which the resource is located. Optionally, the time zone information corresponding to the resource may be determined according to the geographic location where the resource is located. For example, if the geographic location where the resource A is located is Beijing, the time zone information corresponding to the resource A may be determined as: the east 8 zone. It can be understood that the specific determining manner of the time zone information corresponding to the resource is not limited in the embodiment of the present application.
在实际应用中,可以预先配置资源、以及所述资源对应的时区信息;或者,可以从其他设备接收资源、以及所述资源对应的时区信息。进一步,本申请实施例还可以对提供的资源、以及所述资源对应的时区信息进行存储和管理。可选地,资源及其时区信息对应的存储装置可以包括:外存储器(如硬盘等)、或者内存储器(如只读存储器、随机存储器等),可以理解,本申请实施例对于资源及其时区信息对应的具体存储装置不加以限制。In an actual application, the resource and the time zone information corresponding to the resource may be pre-configured; or the resource may be received from other devices and the time zone information corresponding to the resource. Further, the embodiment of the present application may further store and manage the provided resources and the time zone information corresponding to the resources. Optionally, the storage device corresponding to the resource and its time zone information may include: an external memory (such as a hard disk, etc.), or an internal memory (such as a read only memory, a random access memory, etc.). It can be understood that the embodiment of the present application is for a resource and a time zone thereof. The specific storage device corresponding to the information is not limited.
参照表1,示出了本申请实施例的一种资源、以及所述资源对应的时区信息的示意,其中,一个资源可以对应有一个时区,例如,资源1对应有时区A,资源2对应有时区B,资源3对应有时区C,资源4对应有时区D…,由此可以实现全球范围内的资源及其时区信息的存储和管理。Referring to Table 1, there is shown a resource of an embodiment of the present application, and a time zone information corresponding to the resource, where a resource may correspond to a time zone, for example, resource 1 corresponds to time zone A, and resource 2 corresponds to In time zone B, resource 3 corresponds to time zone C, and resource 4 corresponds to time zone D..., thereby realizing storage and management of resources and time zone information on a global scale.
表1Table 1
资源Resource 时区信息Time zone information
资源1Resource 1 时区ATime zone A
资源2Resource 2 时区BTime zone B
资源3Resource 3 时区CTime zone C
资源4Resource 4 时区DTime zone D
... ...
步骤202中,任务可用于封装业务逻辑的处理过程。例如,所述任务可以包括服务任务,所述服务任务可以为依据用户输入的服务请求得到。在实际应用中,步骤202可以生成任务,或者,步骤202可以从其他设备接收已生成的任务。可以理解,本申请实施例对于具体的任务、以及获取任务的具体过程不加以限制。In step 202, the task can be used to encapsulate the processing of the business logic. For example, the task may include a service task, which may be obtained based on a service request entered by the user. In a practical application, step 202 may generate a task, or step 202 may receive the generated task from other devices. It can be understood that the specific embodiments of the present application do not limit the specific tasks and the specific procedures for obtaining the tasks.
步骤201中提供的资源可以为多个,步骤203可以依据所述任务对应的目标时区信息,从多个所述资源中确定所述任务对应的目标资源。The number of resources provided in the step 201 may be multiple, and the step 203 may determine, according to the target time zone information corresponding to the task, the target resource corresponding to the task from the plurality of resources.
可选地,任务对应的目标时区信息的确定过程可以包括:依据任务的生成时间,确定任务对应的目标时区信息。具体地,可以将任务的生成时间对应的当前工作时区,作为任务对应的目标时区信息。例如,可以将任务的生成时间作为当前时间,当前时间哪些时区的地区在工作,则可以将这些时区作为任务对应的目标时区,可以理解,本申请实施例对于任务对应的目标时区信息的具体确定过程不加以限制。Optionally, the determining process of the target time zone information corresponding to the task may include: determining the target time zone information corresponding to the task according to the generation time of the task. Specifically, the current working time zone corresponding to the generation time of the task may be used as the target time zone information corresponding to the task. For example, the generation time of the task can be used as the current time, and the time zone of the current time zone is working, and the time zone can be used as the target time zone corresponding to the task. It can be understood that the specific time zone information corresponding to the task is determined by the embodiment of the present application. The process is not limited.
在本申请的一种可选实施例中,所述步骤203从所述资源中确定所述任务对应的目标资源的过程,具体可以包括:对所述任务对应的目标时区信息与资源对应的时区信息进行匹配;依据匹配结果得到所述目标时区信息对应的资源;并依据所述目标时区信息对应的资源,得到所述任务对应的目标资源。In an optional embodiment of the present application, the step 203, the process of determining the target resource corresponding to the task from the resource, may include: a time zone corresponding to the target time zone information corresponding to the task and the resource The information is matched; the resource corresponding to the target time zone information is obtained according to the matching result; and the target resource corresponding to the task is obtained according to the resource corresponding to the target time zone information.
在实际应用中,可以通过ID(标识,Identity)来标识时区,例如,目标时区信息的标识为第一时区标识,资源对应的时区信息的标识为时区信息标识,则对所述任务对应的目标时区信息与资源对应的时区信息进行匹配的过程为:对上述第一时区标识和上述第二时区标识进行匹配。当然,通过ID来标识时区只是作为示例,还可以根据时区的地理位置来标识时区,可以理解,本申请实施例对于时区的具体标识方式不加以限制。In an actual application, the time zone may be identified by an ID (identity). For example, the identifier of the target time zone information is the first time zone identifier, and the identifier of the time zone information corresponding to the resource is the time zone information identifier, and the target corresponding to the task is The process of matching the time zone information with the time zone information corresponding to the resource is: matching the first time zone identifier and the second time zone identifier. Of course, the time zone is identified by the ID as an example. The time zone can also be identified according to the geographic location of the time zone. It can be understood that the specific identification manner of the time zone is not limited in the embodiment of the present application.
在实际应用中,若匹配结果为匹配成功,则可以将资源作为所述目标时区信息对应的资源;所述目标时区信息对应的资源可以为一个或多个。其中,在所述目标时区信息对应的资源为一个的情况下,可以将所述目标时区信息对应的一个资源,作为所述任务对应的目标资源。在所述目标时区信息对应的资源为多个的情况下,可以从所述目标时区信息对应的多个资源中确定至少一个,作为所述任务对应的目标资源,具体的确定过程将在方法实施例二中进行介绍。In the actual application, if the matching result is that the matching is successful, the resource may be used as the resource corresponding to the target time zone information; the resource corresponding to the target time zone information may be one or more. In the case that the resource corresponding to the target time zone information is one, one resource corresponding to the target time zone information may be used as the target resource corresponding to the task. In a case that the target time zone information corresponds to multiple resources, at least one of the plurality of resources corresponding to the target time zone information may be determined as the target resource corresponding to the task, and the specific determining process is implemented in the method. Introduced in Example 2.
步骤204利用所述目标资源处理所述任务的过程,可以包括:向所述目标资源分发所述任务,以使所述目标资源处理所述任务。以资源为人力资源为例,可以向任务对应目标时区内的工作人员分发该任务,以使该工作人员对该任务进行处理。以资源为计算机资源为例,可以向任务对应目标时区内的计算节点分发该任务,以使该计算节点处理该任务等。Step 204: The process of processing the task by using the target resource may include: distributing the task to the target resource, so that the target resource processes the task. Taking resources as human resources as an example, the task can be distributed to the staff in the time zone corresponding to the target task, so that the staff can handle the task. Taking a resource as a computer resource as an example, the task may be distributed to a computing node in a time zone corresponding to the task, so that the computing node processes the task and the like.
综上,本申请实施例的任务处理方法,任务对应的目标时区可用于表征当前时间能够处理所述任务的时区,资源对应的时区信息可用于表征资源所处的时区,这样,可以将任务对应的目标时区内的资源作为任务对应的目标资源,进而可以利用所述目标资源 处理所述任务;由于本申请实施例可以利用当前时间能够处理所述任务的时区内的资源,对任务进行处理,因此可以降低任务的处理延迟,以及可以提高任务的处理效率。在上述任务为服务任务的情况下,本申请实施例可以降低服务任务的服务周期、提高服务任务的响应性能,且可以提升用户的服务体验。In summary, in the task processing method of the embodiment of the present application, the target time zone corresponding to the task may be used to represent the time zone in which the current time can process the task, and the time zone information corresponding to the resource may be used to represent the time zone in which the resource is located, so that the task may be corresponding. The resource in the target time zone is used as the target resource corresponding to the task, and the task can be processed by using the target resource. The embodiment of the present application can process the resource in the time zone of the task by using the current time, and process the task. Therefore, the processing delay of the task can be reduced, and the processing efficiency of the task can be improved. In the case that the foregoing task is a service task, the embodiment of the present application can reduce the service period of the service task, improve the response performance of the service task, and improve the service experience of the user.
方法实施例二Method embodiment two
参照图3,示出了本发明的一种任务处理方法实施例二的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3, a flow chart of the steps of the second embodiment of the task processing method of the present invention is shown, which may specifically include the following steps:
步骤301、提供资源、以及所述资源对应的时区信息;Step 301: Provide a resource, and time zone information corresponding to the resource.
步骤302、提供资源的属性信息;Step 302: Provide attribute information of the resource.
步骤303、获取任务;Step 303: Obtain a task.
步骤304、确定所述目标时区信息对应的资源;所述目标时区对应的资源可以为多个;Step 304: Determine resources corresponding to the target time zone information; the resources corresponding to the target time zone may be multiple;
步骤305、依据所述资源的属性信息,从所述目标时区对应的多个资源中确定所述任务对应的目标资源;Step 305: Determine, according to attribute information of the resource, a target resource corresponding to the task from multiple resources corresponding to the target time zone;
步骤306、利用所述目标资源处理所述任务。Step 306: Process the task by using the target resource.
相对于图2所示方法实施例一,图3所示方法实施例二还可以提供资源的属性信息,该属性信息可以指资源具有的性质。可选地,该属性信息可以包括如下信息中的至少一种:成本信息、质量信息和资源与任务特征之间的映射关系。当然,本申请实施例对于具体的属性信息不加以限制。With respect to the first embodiment of the method shown in FIG. 2, the second embodiment of the method shown in FIG. 3 may further provide attribute information of a resource, where the attribute information may refer to a property of the resource. Optionally, the attribute information may include at least one of the following information: cost information, quality information, and a mapping relationship between the resource and the task feature. Of course, the embodiment of the present application does not limit specific attribute information.
参照表2,示出了本申请实施例的一种资源、以及该资源对应的时区信息和属性信息的示意。Referring to Table 2, a resource of the embodiment of the present application, and time zone information and attribute information corresponding to the resource are shown.
表2Table 2
Figure PCTCN2019071356-appb-000001
Figure PCTCN2019071356-appb-000001
Figure PCTCN2019071356-appb-000002
Figure PCTCN2019071356-appb-000002
本申请实施例通过步骤304和步骤305细化了步骤203从所述资源中确定所述任务对应的目标资源的过程。其中,步骤304确定所述目标时区信息对应的多个资源,步骤305从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源。可以理解,确定的目标资源可以为一个,也可以为多个。The embodiment of the present application refines the process of determining the target resource corresponding to the task from the resources by using step 304 and step 305. The step 304 determines a plurality of resources corresponding to the target time zone information, and the step 305 determines a target resource corresponding to the task from the plurality of resources corresponding to the target time zone information. It can be understood that the determined target resources may be one or multiple.
步骤305从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源,对应确定过程的依据可以为所述资源的属性信息,本申请实施例可以提供如下属性信息、以及属性信息对应的确定过程:In step 305, the target resource corresponding to the task is determined from the plurality of resources corresponding to the target time zone information, and the basis of the corresponding determining process may be the attribute information of the resource. The embodiment may provide the following attribute information and attribute information. Corresponding determination process:
1)资源的成本信息。1) Cost information of resources.
资源的成本信息可用于表征资源的耗费的货币表现及其对象化。以资源为人力资源为例,人力资源的成本信息可以为工作人员的薪资等。以资源为计算机资源为例,计算机资源的成本信息可以为计算机资源的价值等。可以理解,本领域技术人员可以根据实际应用需求,确定资源的成本信息,本申请实施例对于资源的具体成本信息、以及成本信息对应的具体确定方式不加以限制。The cost information of the resource can be used to characterize the costly monetary performance of the resource and its objectification. Taking resources as human resources as an example, the cost information of human resources can be the salary of the staff. Taking resources as computer resources as an example, the cost information of computer resources can be the value of computer resources. It can be understood that a person skilled in the art can determine the cost information of the resource according to the actual application requirement. The specific cost information of the resource and the specific determination manner corresponding to the cost information are not limited in the embodiment of the present application.
本申请实施例依据所述资源的成本信息,从所述目标时区信息对应的多个资源中确定一个,作为所述任务对应的目标资源。通常成本信息越低,则资源被确定的概率越大,故可以降低目标资源的成本信息。例如,可以从所述目标时区信息对应的多个资源中确定成本最低的一个,作为任务对应的目标资源,这样可以有效降低目标资源的成本信息。The embodiment of the present application determines one of the multiple resources corresponding to the target time zone information as the target resource corresponding to the task, according to the cost information of the resource. Generally, the lower the cost information, the greater the probability that the resource is determined, so the cost information of the target resource can be reduced. For example, the lowest cost one of the plurality of resources corresponding to the target time zone information may be determined as the target resource corresponding to the task, so that the cost information of the target resource may be effectively reduced.
2)资源的质量信息。2) Quality information of resources.
资源的质量信息可用于表征资源的优劣程度。可选地,所述质量信息可以为依据所述资源对应的历史任务处理数据得到。进一步可选地,所述质量信息可以包括如下信息中的至少一种:所述资源对应的历史任务数量、历史任务质量信息和历史任务处理时间信息。The quality information of the resource can be used to characterize the pros and cons of the resource. Optionally, the quality information may be obtained according to historical task processing data corresponding to the resource. Further optionally, the quality information may include at least one of the following: a historical task quantity corresponding to the resource, historical task quality information, and historical task processing time information.
以资源为人力资源为例,人力资源对应的历史任务数量可用于表征人力资源完成的历史任务的数量;人力资源对应的历史任务质量信息可用于表征人力资源完成的历史任务的质量信息,例如可以依据用户对于历史任务的评价信息得到历史任务质量信息;人力资源对应的历史任务处理时间信息可用于表征人力资源完成一个历史任务所需的时间、或者完成多个历史任务所需的平均时间等。在采用两种或者两种以上质量信息的情 况下,可以对两种或者两种以上质量信息进行加权平均,以得到综合质量信息,并将该综合质量信息用于从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源的过程,可以理解,本申请实施例对于一种质量信息对应的具体权重不加以限制。对于计算机资源对应的质量信息而言,由于其原理与人力资源对应的质量信息的原理类似,故在此不作赘述,相互参照即可。Taking resources as human resources as an example, the number of historical tasks corresponding to human resources can be used to represent the number of historical tasks completed by human resources; the historical task quality information corresponding to human resources can be used to characterize the quality information of historical tasks completed by human resources, for example, Historical task quality information is obtained according to user evaluation information of historical tasks; historical task processing time information corresponding to human resources can be used to represent the time required for human resources to complete a historical task, or the average time required to complete multiple historical tasks. When two or more types of quality information are used, two or more types of quality information may be weighted and averaged to obtain integrated quality information, and the integrated quality information is used for corresponding to the target time zone information. For the process of determining the target resource corresponding to the task, the specific weight of the quality information is not limited in the embodiment of the present application. For the quality information corresponding to the computer resources, since the principle is similar to the principle of the quality information corresponding to the human resources, it will not be described here, and the mutual reference may be used.
本申请实施例依据所述资源对应的质量信息,从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源;可以提高目标资源的质量信息。例如,可以从所述目标时区信息对应的多个资源中选择质量最高的一个,作为所述任务对应的目标资源,这样可以有效提高目标资源的质量信息。The embodiment of the present application determines the target resource corresponding to the task from the plurality of resources corresponding to the target time zone information according to the quality information corresponding to the resource; and improves the quality information of the target resource. For example, the highest quality one of the plurality of resources corresponding to the target time zone information may be selected as the target resource corresponding to the task, so that the quality information of the target resource may be effectively improved.
3)资源与任务特征之间的映射关系。3) The mapping relationship between resources and task characteristics.
资源与任务特征之间的映射关系可以反映资源与任务特征之间的关联程度。通常某资源与某任务特征具备映射关系,则可以说明利用该任务处理具备该任务特征的任务的情况下、任务对应的处理效果较佳/较优。以任务特征为任务类型、资源为人力资源为例,假设某工作人员A-1与某任务类型F1具备映射关系,则说明工作人员A-1擅长处理任务类型F1的任务。在商品对应的客服服务领域,任务类型的例子可以包括:鉴图任务类型、服饰鉴损任务类型等,可以理解,本领域技术人员可以根据任务的实际情况,确定对应的任务类型,本申请实施例对于具体的任务类型不加以限制。The mapping between resources and task characteristics can reflect the degree of association between resources and task characteristics. Generally, when a resource has a mapping relationship with a certain task feature, it can be explained that when the task having the task feature is processed by the task, the processing effect corresponding to the task is better/optimized. Taking the task feature as the task type and the resource as the human resource as an example, assuming that a staff member A-1 has a mapping relationship with a certain task type F1, it indicates that the worker A-1 is good at processing the task of the task type F1. In the customer service field corresponding to the commodity, the example of the task type may include: the type of the task, the type of the clothing, and the like. It can be understood that the person skilled in the art can determine the corresponding task type according to the actual situation of the task. There are no restrictions on the specific task types.
在本申请的一种可选实施例中,可以通过如下步骤建立所述资源与任务特征之间的映射关系:依据所述资源对应的历史任务处理数据,确定所述资源对应的历史任务信息;所述历史任务信息可以包括:历史任务特征、历史任务处理信息;依据所述资源对应的历史任务信息,建立所述资源与任务特征之间的映射关系。In an optional embodiment of the present application, the mapping relationship between the resource and the task feature may be established by: determining historical task information corresponding to the resource according to historical task processing data corresponding to the resource; The historical task information may include: historical task characteristics and historical task processing information; and establishing a mapping relationship between the resource and the task feature according to historical task information corresponding to the resource.
其中,资源对应的历史任务信息可用于表征利用任务处理过的历史任务的信息。历史任务特征可用于表征历史任务的任务特征,如历史任务的任务类型、历史任务的类别等;历史任务处理信息可用于表征历史任务的处理情况,该历史任务处理信息可以包括:历史任务处理时间信息和/或历史任务质量信息,其中,历史任务处理信息可以反映历史任务的处理效率,历史任务质量信息可以反映历史任务的处理质量,可选地,可以依据历史任务的评价信息得到该历史任务质量信息。The historical task information corresponding to the resource may be used to represent information of the historical task processed by the task. The historical task feature can be used to represent the task characteristics of the historical task, such as the task type of the historical task, the category of the historical task, and the like; the historical task processing information can be used to represent the processing status of the historical task, and the historical task processing information can include: historical task processing time Information and/or historical task quality information, wherein the historical task processing information may reflect the processing efficiency of the historical task, and the historical task quality information may reflect the processing quality of the historical task. Optionally, the historical task may be obtained according to the evaluation information of the historical task. Quality information.
本申请实施例依据所述资源对应的历史任务信息,建立所述资源与任务特征之间的映射关系;其中,历史任务信息具体包括:历史任务特征和历史任务处理信息,历史任务处理信息可以作为资源与任务特征之间的映射关系的确定依据,例如,历史任务信息 可以作为资源是否擅长处理某种任务特征的判断依据。An embodiment of the present application establishes a mapping relationship between the resource and the task feature according to the historical task information corresponding to the resource. The historical task information specifically includes: a historical task feature and a historical task processing information, and the historical task processing information may be used as The basis for determining the mapping relationship between resources and task features, for example, historical task information can be used as a basis for judging whether a resource is good at handling certain task characteristics.
在实际应用中,可以采用统计学习方法、或者机器学习方法,对历史任务信息进行学习,以得到资源与任务特征之间的映射关系。例如,机器学习方法可以将历史任务信息作为训练数据,通过对训练数据进行机器学习,可以使学习得到的机器学习模型具备资源所对应任务特征的识别能力,机器学习模型的例子可以包括:SVM(支持向量机,Support Vector Machine)模型、贝叶斯模型、神经网络模型等,可以理解,本申请实施例对于具体的机器学习模型不加以限制。In practical applications, statistical learning methods or machine learning methods may be used to learn historical task information to obtain a mapping relationship between resources and task features. For example, the machine learning method can use the historical task information as the training data. By performing machine learning on the training data, the learned machine learning model can have the recognition capability of the task features corresponding to the resources, and examples of the machine learning model can include: SVM ( Support vector machine model, Bayesian model, neural network model, etc., it can be understood that the embodiments of the present application do not limit the specific machine learning model.
本申请实施例依据资源与任务特征之间的映射关系,从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源。具体地,可以依据资源与任务特征之间的映射关系、以及所述任务对应的任务特征,从所述目标时区信息对应的多个资源中确定一个,作为所述任务对应的目标资源,这样可以提高目标资源与任务所对应任务特征之间的匹配度。例如,工作人员A-1和工作人员B-1当前时间均能够处理某任务,但由于工作人员A-1擅长处理鉴图任务,工作人员B-1擅长处理服饰鉴损任务,而该任务对应的任务类型为鉴图,则可以确定工作人员A-1进行该任务的处理。The embodiment of the present application determines the target resource corresponding to the task from the plurality of resources corresponding to the target time zone information according to the mapping relationship between the resource and the task feature. Specifically, one of the plurality of resources corresponding to the target time zone information may be determined as the target resource corresponding to the task according to the mapping relationship between the resource and the task feature and the task feature corresponding to the task, so that Improve the matching degree between the target resource and the task characteristics corresponding to the task. For example, staff A-1 and staff B-1 can handle a certain task at the current time, but because staff A-1 is good at handling the mapping task, staff B-1 is good at handling the apparel damage task, and the task corresponds to The task type is the map, then it can be determined that the staff A-1 performs the processing of the task.
可选地,上述从所述目标时区信息对应的多个资源中确定一个的过程可以包括:首先依据所述任务对应的任务特征,在上述资源与任务特征之间的映射关系中进行查找,以得到与所述任务对应的任务特征相匹配的至少一个备选资源;然后,从所述至少一个备选资源中确定一个,作为所述任务对应的目标资源。可选地,可以依据资源对应的成本信息、资源对应的质量信息和资源与任务特征之间的映射关系概率中的至少一种,从所述至少一个备选资源中确定一个。其中,资源与任务特征之间的映射关系概率可以通过前述的统计学习方法、或者机器学习方法得到,本申请实施例对于资源与任务特征之间的映射关系概率的具体确定方式、以及从所述至少一个备选资源中确定一个的具体过程不加以限制。Optionally, the process of determining one of the plurality of resources corresponding to the target time zone information may include: first searching, according to the task feature corresponding to the task, in a mapping relationship between the resource and the task feature, Obtaining at least one candidate resource that matches the task feature corresponding to the task; and then determining one from the at least one candidate resource as the target resource corresponding to the task. Optionally, one of the at least one candidate resource may be determined according to at least one of cost information corresponding to the resource, quality information corresponding to the resource, and a probability of mapping relationship between the resource and the task feature. The probability of the mapping relationship between the resource and the task feature may be obtained by using the foregoing statistical learning method or the machine learning method, and the specific determining manner of the mapping relationship probability between the resource and the task feature in the embodiment of the present application, and the The specific process of determining one of at least one candidate resource is not limited.
以上通过资源的成本信息、资源的质量信息和所述资源与任务特征之间的映射关系,对从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源的依据进行了详细介绍,可以理解,本领域技术人员可以根据实际应用需求,采用上述多个依据中的任一或者组合。The basis of determining the target resource corresponding to the task from the plurality of resources corresponding to the target time zone information is detailed by using the cost information of the resource, the quality information of the resource, and the mapping relationship between the resource and the task feature. It is to be understood that those skilled in the art may adopt any one or combination of the above multiple according to actual application requirements.
在本申请的一种可选实施例中,可以采用上述多个依据中的组合,相应地,上述步骤303从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源的过程,具体可以包括:依据所述资源的成本信息和质量信息,确定所述资源对应的资源回报信息; 依据所述资源对应的资源回报信息,从所述目标时区信息对应的多个资源中选择所述任务对应的目标资源。例如,可以从所述目标时区信息对应的多个资源中选择资源回报信息最优的一个,作为所述任务对应的目标资源。In an optional embodiment of the present application, the foregoing multiple combinations may be adopted, and correspondingly, the step 303 determines a process of the target resource corresponding to the task from multiple resources corresponding to the target time zone information. Specifically, the method may include: determining resource return information corresponding to the resource according to the cost information and the quality information of the resource; and selecting, according to the resource return information corresponding to the resource, a plurality of resources corresponding to the target time zone information The target resource corresponding to the task. For example, one of the plurality of resources corresponding to the target time zone information may be selected as the target resource corresponding to the task.
本申请实施例中,资源回报信息可用于表征资源对应的产出与投入之间的关系,其中,可通过资源的成本信息反映资源对应的投入,可通过资源的质量信息反映资源对应的产出。根据一种示例,资源回报信息可以为ROI(资源回报率,return on investment),ROI可以表示为:In the embodiment of the present application, the resource return information may be used to represent the relationship between the output and the input corresponding to the resource, wherein the cost information of the resource may reflect the input corresponding to the resource, and the quality information of the resource may reflect the output corresponding to the resource. . According to an example, the resource return information may be an ROI (return on investment), and the ROI may be expressed as:
ROI=质量信息/成本信息*100%           (1)ROI=Quality Information/Cost Information*100% (1)
其中,在通过公式(1)计算ROI的过程中,可以采用一种或者多种质量信息,例如,可以依据资源对应的历史任务数量、历史任务质量信息和历史任务处理时间信息等3种质量信息。In the process of calculating the ROI by the formula (1), one or more types of quality information may be used, for example, three types of quality information, such as the number of historical tasks corresponding to the resource, the historical task quality information, and the historical task processing time information. .
在本申请的一种可选实施例中,由于质量信息和成本信息对应的度量单位是不同的,因此,在通过公式(1)计算ROI之前,可以分别对质量信息和成本信息进行标准化,上述标准化可以将质量信息和成本信息按比例缩放,使之落入一个小的特定区间。In an optional embodiment of the present application, since the unit of measurement corresponding to the quality information and the cost information is different, the quality information and the cost information may be separately standardized before calculating the ROI by the formula (1). Standardization can scale quality information and cost information to fit into a small specific interval.
综上,本申请实施例的任务处理方法,在所述目标时区信息对应的资源为多个的情况下,依据所述资源对应的属性信息,从所述目标时区信息对应的多个资源中确定所述任务对应的目标资源。该属性信息可以指资源具有的性质。可选地,该属性信息可以包括如下信息中的至少一种:成本信息、质量信息和资源与任务特征之间的映射关系。In summary, the task processing method of the embodiment of the present application determines, from the plurality of resources corresponding to the target time zone information, according to the attribute information corresponding to the resource, when the resource corresponding to the target time zone information is multiple. The target resource corresponding to the task. This attribute information can refer to the nature of the resource. Optionally, the attribute information may include at least one of the following information: cost information, quality information, and a mapping relationship between the resource and the task feature.
其中,资源的成本信息可用于表征资源的耗费的货币表现及其对象化,本申请实施例依据所述资源的成本信息,从所述目标时区信息对应的多个资源中确定一个,作为所述任务对应的目标资源;通常成本信息越低,则资源被确定的概率越大,故可以降低目标资源的成本信息。The cost information of the resource may be used to represent the spent currency performance of the resource and its objectification. The embodiment of the present application determines one of the multiple resources corresponding to the target time zone information according to the cost information of the resource, as the The target resource corresponding to the task; generally, the lower the cost information, the greater the probability that the resource is determined, so the cost information of the target resource can be reduced.
资源的质量信息可用于表征资源的优劣程度,本申请实施例依据所述资源对应的质量信息,从所述目标时区信息对应的多个资源中确定一个,作为所述任务对应的目标资源,可以提高目标资源对应的质量信息。The quality information of the resource may be used to identify the degree of the resource. The embodiment of the present application determines one of the multiple resources corresponding to the target time zone information as the target resource corresponding to the task according to the quality information corresponding to the resource. The quality information corresponding to the target resource can be improved.
资源与任务特征之间的映射关系可以反映资源与任务特征之间的关联程度;通常某资源与某任务特征具备映射关系,则可以说明利用该任务处理具备该任务特征的任务的情况下、任务对应的处理效果较佳。本申请实施例依据资源与任务特征之间的映射关系,从所述目标时区信息对应的多个资源中确定一个,作为所述任务对应的目标资源,可以提高目标资源与任务所对应任务特征之间的匹配度。例如,工作人员A-1和工作人员B-1 当前时间均能够处理某任务,但由于工作人员A-1擅长处理鉴图任务,工作人员B-1擅长处理服饰鉴损任务,而该任务对应的任务类型为鉴图,则可以确定工作人员A-1进行该任务的处理。The mapping relationship between the resource and the task feature can reflect the degree of association between the resource and the task feature; usually, when a resource has a mapping relationship with a certain task feature, it can be explained that the task is used to process the task having the task feature, and the task The corresponding processing effect is better. According to the mapping relationship between the resource and the task feature, the embodiment of the present application determines one of the multiple resources corresponding to the target time zone information, and as the target resource corresponding to the task, the target resource and the task corresponding to the task may be improved. The degree of matching between. For example, staff A-1 and staff B-1 can handle a certain task at the current time, but because staff A-1 is good at handling the mapping task, staff B-1 is good at handling the apparel damage task, and the task corresponds to The task type is the map, then it can be determined that the staff A-1 performs the processing of the task.
方法实施例三Method embodiment three
参照图4,示出了本发明的一种任务处理方法实施例三的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of the steps of the third embodiment of the task processing method of the present invention is shown, which may specifically include the following steps:
步骤401、提供资源、以及所述资源对应的时区信息;Step 401: Provide a resource, and time zone information corresponding to the resource.
步骤402、获取任务;Step 402: Acquire a task.
步骤403、依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;Step 403: Determine, according to target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone in which the current time can process the task;
步骤404、向所述目标资源分发所述任务,以使所述目标资源处理所述任务;Step 404: Distribute the task to the target resource, so that the target resource processes the task.
相对于图2所示方法实施例一,本申请实施例的所述任务可以对应有任务标识,在向所述目标资源分发所述任务之前所述任务标识为未分发,在向所述目标资源分发所述任务之后所述任务标识为已分发;With respect to the first embodiment of the method shown in FIG. 2, the task of the embodiment of the present application may correspond to a task identifier, and the task identifier is not distributed before the task is distributed to the target resource, and the target resource is The task is identified as being distributed after the task is distributed;
相应地,本申请实施例的方法还可以包括:Correspondingly, the method in the embodiment of the present application may further include:
步骤405、记录任务标识为已分发的任务的等待处理时间;Step 405: Record the task identifier as the waiting processing time of the distributed task;
步骤406、若所述等待处理时间超过时间阈值,则将任务标识为已分发的任务对应的任务标识更新为未分发。Step 406: If the waiting processing time exceeds the time threshold, the task identifier corresponding to the task identified as the distributed task is updated to be undistributed.
本申请实施例通过任务标识来表征任务对应的分发状态,其中,任务标识为未分发,可以表示任务尚未分发、需要分发;任务标识为分发,可以表示任务已分发、不需要分发。In the embodiment of the present application, the task identifier is used to represent the distribution status of the task. The task identifier is undistributed, and the task identifier is not distributed, and needs to be distributed. The task identifier is distributed, which indicates that the task has been distributed and does not need to be distributed.
并且,本申请实施例可以对任务标识进行更新,具体地,在步骤404向所述目标资源分发所述任务之前、任务标识为未分发,在步骤404向所述目标资源分发所述任务之后、任务标识为分发;并且,在任务标识为已分发的任务的等待处理时间超过时间阈值的情况下,则将任务标识为已分发的任务对应的任务标识更新为未分发。等待处理时间超过时间阈值表明已分发的任务的等待处理时间过长,故为了降低已分发的任务的处理延迟,可以将其任务标识更新为未分发,以对其进行再次分发。可以理解,本领域技术人员可以根据实际应用需求,确定上述时间阈值,例如,上述时间阈值的范围可以为秒,通常该时间阈值越小则对应的处理延迟越小。In addition, the embodiment of the present application may update the task identifier. Specifically, before the task is distributed to the target resource in step 404, the task identifier is not distributed. After the task is distributed to the target resource in step 404, The task identifier is a distribution; and, in the case that the waiting processing time of the task identified as the distributed task exceeds the time threshold, the task identifier corresponding to the task identified as the distributed task is updated to be undistributed. Waiting for the processing time to exceed the time threshold indicates that the waiting time of the distributed task is too long, so in order to reduce the processing delay of the distributed task, its task identifier can be updated to be undistributed to be redistributed. It can be understood that the time threshold may be determined by a person skilled in the art according to actual application requirements. For example, the time threshold may be in the range of seconds. Generally, the smaller the time threshold is, the smaller the corresponding processing delay is.
在本申请的一种实施例中,可以通过任务集合存储任务标识为未分发的任务,该任 务集合对应的数据结构可以包括:数组、队列等。在实际应用中,可以按照预设周期对该任务集合中的任务进行监测,如果该任务集合中的任务已经分发完毕,可以将该任务对应的任务标识更新为已分发,并将该任务从该任务集合中删除。In an embodiment of the present application, the task collection may be identified as an undistributed task by using a task set, and the data structure corresponding to the task set may include: an array, a queue, and the like. In an actual application, the task in the task set may be monitored according to a preset period. If the task in the task set has been distributed, the task identifier corresponding to the task may be updated to be distributed, and the task is Deleted in the task collection.
在本申请的另一种实施例中,可以通过任务池存储任务。任务池是业务层存储任务的组件,是任务的容器,是在线程间共享任务的实例池,它对客户层是完全透明的。由于任务池提供的对任务的缓存机制,可以减少频繁地创建和回收任务实例产生的系统开销,并节省存储资源。In another embodiment of the present application, tasks can be stored through a task pool. A task pool is a component of a business layer storage task. It is a container of tasks. It is an instance pool that shares tasks among threads. It is completely transparent to the client layer. Due to the task cache mechanism provided by the task pool, the system overhead generated by frequently creating and reclaiming task instances can be reduced, and storage resources can be saved.
可以理解,上述通过任务集合、任务池存储任务的方式只是作为可选实施例,实际上本领域技术人员可以根据实际应用需求,采用任意方式存储任务,例如,可以对任务进行分布式存储等,本申请实施例对于任务对应的具体存储方式不加以限制。It can be understood that the foregoing manner of storing tasks by the task set and the task pool is only an optional embodiment. In fact, those skilled in the art can store tasks in any manner according to actual application requirements, for example, distributed storage of tasks, etc. The specific storage manner corresponding to the task is not limited in the embodiment of the present application.
在本申请的一种可选实施例中,本申请实施例的方法还可以包括:记录任务对应的重置次数;所述重置次数为将任务标识为已分发的任务对应的任务标识更新为未分发的次数;若所述任务对应的重置次数次数超过次数阈值,则针对所述任务进行预置处理;In an optional embodiment of the present application, the method of the embodiment of the present application may further include: recording a reset number corresponding to the task; and the resetting the number of times is to update the task identifier corresponding to the task that is identified as being distributed to If the number of times of resetting corresponding to the task exceeds the threshold of the number of times, the preset processing is performed for the task;
所述预置处理具体可以包括:The preset processing may specifically include:
输出提示信息;和/或Output prompt information; and/or
依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充。And expanding resources corresponding to the task according to the target time zone information corresponding to the task.
本申请实施例中,重置次数可以为将任务标识为已分发的任务对应的任务标识更新为未分发的次数,在任务对应的重置次数超过次数阈值的情况下,说明任务经历了数次被分发但得不到处理的重置,此种情况下,可以对上述任务进行预置处理,以降低该任务的处理延迟。In the embodiment of the present application, the number of times of the reset may be the number of times the task identifier corresponding to the task that has been distributed is updated to be undistributed. If the number of resets corresponding to the task exceeds the threshold of the number of times, the task is experienced several times. A reset that is distributed but not processed. In this case, the above task can be pre-processed to reduce the processing delay of the task.
其中,该预置处理可以包括:输出提示信息,该提示信息可以提醒用户某任务的重置次数超过次数阈值,以使用户通过人工介入方式对该任务进行处理,进而可以降低该任务的处理延迟。The preset processing may include: outputting prompt information, the prompt information may remind the user that the number of resets of a task exceeds a threshold value, so that the user processes the task by manual intervention, thereby reducing the processing delay of the task. .
该预置处理可以包括:依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充,其中,该任务对应的资源可以包括:与该目标时区信息相匹配的资源等,扩充可以指扩展资源的容量,如增加人力资源、计算机资源等;在实际应用中,重置次数超过次数阈值的原因可能为,任务数量远远大于资源数量、以至于向资源分发的任务数量较多,因此本申请实施例自动依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充,可以在一定程度上缓解向资源分发的任务数量较多以使任务被资源等待处理的时间和周期过长的情况,因此可以降低该任务的处理延迟。The preset processing may include: activating, according to the target time zone information corresponding to the task, the resource corresponding to the task, where the resource corresponding to the task may include: a resource that matches the target time zone information, etc., the expansion may be Refers to the capacity of the extended resources, such as the increase of human resources, computer resources, etc.; in practical applications, the reason that the number of resets exceeds the number of times may be that the number of tasks is far greater than the number of resources, so that the number of tasks distributed to resources is large. Therefore, the embodiment of the present application automatically expands the resource corresponding to the task according to the target time zone information corresponding to the task, and can alleviate the time that the number of tasks distributed to the resource is large to make the task wait for the resource to be processed to a certain extent. The period is too long, so the processing delay of the task can be reduced.
综上,本申请实施例的任务处理方法,通过任务标识来表征任务对应的分发状态,在向所述目标资源分发所述任务之前、任务标识为未分发,在向所述目标资源分发所述任务之后、任务标识为分发;并且,在任务标识为已分发的任务的等待处理时间超过时间阈值的情况下,则将任务标识为已分发的任务对应的任务标识更新为未分发;由于等待处理时间超过时间阈值表明已分发的任务的等待处理时间过长,故将其任务标识更新为未分发,以对其进行再次分发,可以降低已分发的任务的处理延迟。In summary, the task processing method of the embodiment of the present application identifies the distribution status corresponding to the task by using the task identifier, and before the task is distributed to the target resource, the task identifier is not distributed, and the distribution is performed to the target resource. After the task, the task identifier is distributed; and, in the case that the waiting processing time of the task whose task is identified as being distributed exceeds the time threshold, the task identifier corresponding to the task identified as the distributed task is updated to be undistributed; When the time exceeds the time threshold, it indicates that the waiting time of the distributed task is too long, so updating its task ID to undistributed to redistribute it can reduce the processing delay of the distributed task.
方法实施例四Method embodiment four
现有方案中,一个区域的客户服务系统针对用户提交的服务请求,生成任务,并通过该区域内的工作人员处理生成的任务。In the existing solution, a regional customer service system generates a task for a service request submitted by a user, and processes the generated task through a staff member in the area.
参照图5,示出了本发明的一种任务处理方法实施例四的步骤流程图,具体可以包括如下步骤:Referring to FIG. 5, a flow chart of the steps of the fourth embodiment of the task processing method of the present invention is shown, which may specifically include the following steps:
步骤501、接收用户提交的服务请求;Step 501: Receive a service request submitted by a user.
步骤502、生成该服务请求对应的任务;Step 502: Generate a task corresponding to the service request.
步骤503、向全球任务处理系统发送所述任务;Step 503: Send the task to a global task processing system.
步骤501至步骤503可由客户服务系统执行,该客户服务系统具有区域性,如图5中,时区1的客户服务系统针对用户提交的服务请求,生成任务T001、任务T002、任务T003;时区2的客户服务系统针对用户提交的服务请求,生成任务T004、任务T005、任务T006;以及,时区3的客户服务系统针对用户提交的服务请求,生成任务T007、任务T008、任务T009。Step 501 to step 503 may be performed by a customer service system. The customer service system has a regionality. As shown in FIG. 5, the customer service system of the time zone 1 generates a task T001, a task T002, and a task T003 for the service request submitted by the user; The customer service system generates a task T004, a task T005, and a task T006 for the service request submitted by the user; and the customer service system of the time zone 3 generates the task T007, the task T008, and the task T009 for the service request submitted by the user.
步骤504、提供资源、以及所述资源对应的时区信息;Step 504: Provide a resource, and time zone information corresponding to the resource.
步骤505、接收客户服务系统发送的任务;Step 505: Receive a task sent by a customer service system.
步骤506、依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区可用于表征当前时间能够处理所述任务的时区;Step 506: Determine, according to target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone may be used to represent a time zone that can process the task at a current time;
步骤507、向所述目标资源分发所述任务,以使所述目标资源处理所述任务。Step 507: Distribute the task to the target resource, so that the target resource processes the task.
步骤504至步骤507可由全球任务处理系统执行,全球任务处理系统可以对全球范围内当前处于工作时区的资源(如工作人员)进行调度,如图5中,全球任务处理系统调度的工作人员可以包括:时区1内的工作人员A-1、工作人员B-1和工作人员C-1,时区2内的工作人员D-2、工作人员E-2和工作人员F-2,以及时区3内的工作人员G-3、工作人员H-3和工作人员I-3等,甚至,全球任务处理系统调度的工作人员还可以包括时区4、时区5…时区24内的工作人员等;这样,可以使当前时间能够处理所述任务的 时区内的工作人员对任务进行处理。 Steps 504 to 507 can be performed by a global task processing system, and the global task processing system can schedule resources (such as workers) currently in the working time zone on a global scale. As shown in FIG. 5, the staff of the global task processing system scheduling can include : Staff A-1, Staff B-1 and Staff C-1 in Time Zone 1, Staff D-2, Staff E-2 and Staff F-2 in Time Zone 2, and in Time Zone 3 Staff G-3, staff H-3 and staff I-3, etc., even the staff of the global task processing system dispatching may also include staff in time zone 4, time zone 5...time zone 24, etc.; The staff in the time zone that is capable of processing the task at the current time processes the task.
本申请实施例中,一个时区的客户服务系统可以生产任务,并向全球任务处理系统发送生产的任务;上述全球任务处理系统可以将跨时差的任务分流,将全球同时刻产生的任务,分发至当前处于工作时区的办公团队,减少服务周期,提升用户体验。In the embodiment of the present application, a time zone customer service system can produce a task and send a production task to a global task processing system; the global task processing system can divide the task across time difference and distribute the tasks generated simultaneously at the same time to the global task. The office team currently in the working time zone reduces service cycles and enhances the user experience.
方法实施例五Method embodiment five
参照图6,示出了本发明的一种任务处理方法实施例五的步骤流程图,具体可以包括如下步骤:Referring to FIG. 6, a flow chart of the steps of the fifth embodiment of the task processing method of the present invention is shown, which may specifically include the following steps:
步骤601、提供资源、以及所述资源对应的时区信息;Step 601: Provide a resource, and time zone information corresponding to the resource.
步骤602、接收用户提交的服务请求;Step 602: Receive a service request submitted by a user.
步骤603、生成该服务请求对应的任务;Step 603: Generate a task corresponding to the service request.
步骤604、依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;Step 604: Determine, according to target time zone information corresponding to the task, a target resource corresponding to the task from the resource;
所述目标时区可用于表征当前时间能够处理所述任务的时区;The target time zone can be used to characterize a time zone in which the current time can process the task;
步骤605、向所述目标资源分发所述任务,以使所述目标资源处理所述任务。Step 605: Distribute the task to the target resource, so that the target resource processes the task.
相对于图5对全球范围内的任务进行整合处理,图6可对全球范围内的任务进行分布式处理。The global scope of tasks is integrated with respect to Figure 5, and Figure 6 provides distributed processing of tasks across the globe.
步骤601至步骤605可由客户服务系统执行,该客户服务系统具有区域性,如图6中,时区1的客户服务系统针对用户提交的服务请求,生成任务T001、任务T002、任务T003;时区2的客户服务系统针对用户提交的服务请求,生成任务T004、任务T005、任务T006;以及,时区3的客户服务系统针对用户提交的服务请求,生成任务T007、任务T008、任务T009。Step 601 to step 605 may be performed by a customer service system, and the customer service system has a regionality. As shown in FIG. 6, the customer service system of the time zone 1 generates a task T001, a task T002, and a task T003 for the service request submitted by the user; The customer service system generates a task T004, a task T005, and a task T006 for the service request submitted by the user; and the customer service system of the time zone 3 generates the task T007, the task T008, and the task T009 for the service request submitted by the user.
该客户服务系统可以提供全球范围内的资源、以及所述资源对应的时区信息,并对全球范围内当前处于工作时区的资源(如工作人员)进行调度,如图6中,客户服务系统调度的工作人员可以包括:时区1内的工作人员A-1、工作人员B-1和工作人员C-1,时区2内的工作人员D-2、工作人员E-2和工作人员F-2,以及时区3内的工作人员G-3、工作人员H-3和工作人员I-3等,甚至,客户服务系统调度的工作人员还可以包括时区4、时区5…时区24内的工作人员等;这样,可以使当前时间能够处理所述任务的时区内的工作人员对任务进行处理。The customer service system can provide resources on a global scale, and time zone information corresponding to the resources, and schedule resources (such as workers) currently in the working time zone on a global scale, as shown in Figure 6, the customer service system schedules. Staff may include: staff A-1, staff B-1 and staff C-1 in time zone 1, staff D-2, staff E-2 and staff F-2 in time zone 2, and The staff G-3, the staff H-3, the staff member I-3, etc. in the time zone 3, and even the staff of the customer service system dispatching may also include the staff in the time zone 4, the time zone 5, the time zone 24, etc.; The task can be processed by the staff in the time zone that can handle the task at the current time.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因 为依据本申请实施例,某些方框可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain blocks may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.
本申请实施例还提供了一种任务处理装置。The embodiment of the present application further provides a task processing apparatus.
参照图7,示出了本申请的一种任务处理装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 7, a structural block diagram of an embodiment of a task processing apparatus of the present application is shown, which may specifically include the following modules:
第一提供模块701,用于提供资源、以及所述资源对应的时区信息;a first providing module 701, configured to provide a resource, and time zone information corresponding to the resource;
任务获取模块702,用于获取任务;a task obtaining module 702, configured to acquire a task;
目标资源确定模块703,用于依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;以及The target resource determining module 703 is configured to determine, according to the target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone in which the current time can process the task;
任务处理模块704,用于利用所述目标资源处理所述任务。The task processing module 704 is configured to process the task by using the target resource.
可选地,所述装置还可以包括:Optionally, the device may further include:
第二提供模块,用于提供资源的属性信息;a second providing module, configured to provide attribute information of the resource;
所述目标资源确定模块703可以包括:The target resource determining module 703 can include:
第一确定子模块,用于确定所述目标时区信息对应的资源;所述目标时区对应的资源为多个;以及a first determining submodule, configured to determine a resource corresponding to the target time zone information; the target time zone corresponds to multiple resources;
第二确定子模块,用于依据所述资源的属性信息,从所述目标时区对应的多个资源中确定所述任务对应的目标资源。And a second determining submodule, configured to determine, according to the attribute information of the resource, a target resource corresponding to the task from multiple resources corresponding to the target time zone.
可选地,所述属性信息可以包括如下信息中的至少一种:Optionally, the attribute information may include at least one of the following information:
成本信息、质量信息和资源与任务特征之间的映射关系。Cost information, quality information, and mapping between resources and task characteristics.
可选地,所述第二确定子模块可以包括:Optionally, the second determining submodule may include:
资源回报信息确定单元,用于依据所述资源的成本信息和质量信息,确定所述资源对应的资源回报信息;以及a resource return information determining unit, configured to determine resource return information corresponding to the resource according to the cost information and the quality information of the resource;
选择单元,用于依据所述资源对应的资源回报信息,从所述目标时区对应的多个资源中选择所述任务对应的目标资源。And a selecting unit, configured to select, according to the resource return information corresponding to the resource, the target resource corresponding to the task from the plurality of resources corresponding to the target time zone.
可选地,所述质量信息可以为依据所述资源对应的历史任务处理数据得到。Optionally, the quality information may be obtained according to historical task processing data corresponding to the resource.
可选地,所述质量信息可以包括:所述资源对应的历史任务数量、历史任务质量信息和历史任务处理时间信息中的至少一种。Optionally, the quality information may include at least one of a historical task quantity, historical task quality information, and historical task processing time information corresponding to the resource.
可选地,所述资源与任务特征之间的映射关系可以为依据所述资源对应的历史任务 处理数据得到。Optionally, the mapping relationship between the resource and the task feature may be obtained by processing data according to historical tasks corresponding to the resource.
可选地,所述装置还可以包括:Optionally, the device may further include:
历史任务信息确定模块,用于依据所述资源对应的历史任务处理数据,确定所述资源对应的历史任务信息;所述历史任务信息可以包括:历史任务特征、历史任务处理信息;The historical task information determining module is configured to determine historical task information corresponding to the resource according to historical task processing data corresponding to the resource; the historical task information may include: historical task characteristics and historical task processing information;
映射建立模块,用于依据所述资源对应的历史任务信息,建立所述资源与任务特征之间的映射关系。The mapping establishing module is configured to establish a mapping relationship between the resource and the task feature according to historical task information corresponding to the resource.
可选地,所述任务处理模块704可以包括:Optionally, the task processing module 704 can include:
任务分发子模块,用于向所述目标资源分发所述任务,以使所述目标资源处理所述任务。a task distribution sub-module for distributing the task to the target resource to cause the target resource to process the task.
可选地,所述任务对应有任务标识,在向所述目标资源分发所述任务之前所述任务标识为未分发,在向所述目标资源分发所述任务之后所述任务标识为已分发;Optionally, the task is associated with a task identifier, and the task identifier is undistributed before the task is distributed to the target resource, and the task identifier is distributed after the task is distributed to the target resource.
则所述装置还可以包括:Then the device may further comprise:
第一记录模块,用于记录任务标识为已分发的任务的等待处理时间;a first recording module, configured to record a waiting time for the task identified as a distributed task;
更新模块,用于若所述等待处理时间超过时间阈值,则将任务标识为已分发的任务对应的任务标识更新为未分发。And an update module, configured to update the task identifier corresponding to the task that has been distributed to be undistributed if the waiting processing time exceeds the time threshold.
可选地,所述装置还可以包括:Optionally, the device may further include:
第二记录模块,用于记录任务对应的重置次数;所述重置次数为将任务标识为已分发的任务对应的任务标识更新为未分发的次数;a second recording module, configured to record a resetting number corresponding to the task; the resetting number is a number of times that the task identifier corresponding to the task that is identified as being distributed is updated to be undistributed;
预置处理模块,用于若所述任务对应的重置次数超过次数阈值,则针对所述任务进行预置处理;a preset processing module, configured to perform preset processing on the task if the number of resets corresponding to the task exceeds a threshold number of times;
所述预置处理模块可以包括:The preset processing module may include:
提示子模块,用于输出提示信息;和/或a prompt sub-module for outputting prompt information; and/or
资源扩充子模块,用于依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充。The resource expansion sub-module is configured to expand resources corresponding to the task according to the target time zone information corresponding to the task.
可选地,所述任务可以包括服务任务,所述服务任务为依据用户输入的服务请求得到。Optionally, the task may include a service task, which is obtained according to a service request input by the user.
参照图8,示出了本申请的另一种任务处理装置实施例的结构框图,具体可以包括如下模块:任务池模块801、时区管控模块802、资源属性确定模块803、规则模块804和任务分发模块805。Referring to FIG. 8, a structural block diagram of another embodiment of a task processing apparatus of the present application is shown, which may specifically include the following modules: a task pool module 801, a time zone management module 802, a resource attribute determining module 803, a rule module 804, and task distribution. Module 805.
其中,任务池模块801,用于对至少一个时区生产的任务进行整合;The task pool module 801 is configured to integrate tasks generated in at least one time zone;
时区管控模块802,用于管控资源对应的时区信息、以及任务对应的目标时区信息,并依据所述任务对应的目标时区信息,确定所述目标时区对应的资源;The time zone management module 802 is configured to control the time zone information corresponding to the resource and the target time zone information corresponding to the task, and determine the resource corresponding to the target time zone according to the target time zone information corresponding to the task;
资源属性确定模块803,用于确定资源的属性信息The resource attribute determining module 803 is configured to determine attribute information of the resource.
可选地,资源属性确定模块803可以包括:成本确定子模块、质量确定子模块和ROI计算子模块中的至少一种。Optionally, the resource attribute determining module 803 may include at least one of a cost determining submodule, a quality determining submodule, and an ROI calculating submodule.
其中,成本确定子模块,用于确定资源的成本信息;例如,可以收集工作人员的薪资等成本信息,计算工作人员的成本总额;The cost determination sub-module is used to determine the cost information of the resource; for example, the cost information such as the salary of the staff member may be collected, and the total cost of the staff member is calculated;
质量确定子模块,用于确定资源的质量信息;例如,收集工作人员对应的历史任务数量、历史任务质量信息和历史任务处理时间信息等质量信息,计算工作人员对应的贡献度;a quality determining sub-module, configured to determine quality information of the resource; for example, collecting quality information such as the number of historical tasks corresponding to the staff, historical task quality information, and historical task processing time information, and calculating the contribution of the corresponding staff;
ROI计算子模块,用于计算资源对应的ROI;例如,ROI=贡献度/成本信息*100%。The ROI calculation sub-module is used to calculate the ROI corresponding to the resource; for example, ROI=contribution/cost information*100%.
规则模块804,用于确定所述目标时区对应的多个资源的分配规则。The rule module 804 is configured to determine an allocation rule of multiple resources corresponding to the target time zone.
可选地,规则模块804可以包括:冲突解决子模块、延时风控子模块和任务特征资源匹配子模块。Optionally, the rules module 804 can include: a conflict resolution sub-module, a delay wind control sub-module, and a task feature resource matching sub-module.
冲突解决子模块,用于在所述目标时区对应的资源为多个的情况下,通过资源属性确定模块803确定的属性信息,对所述目标时区对应的多个资源进行排序,并依据排序结果确定任务对应的目标资源。a conflict resolution sub-module, configured to sort, by using the attribute information determined by the resource attribute determining module 803, the plurality of resources corresponding to the target time zone, and according to the sorting result, if the resource corresponding to the target time zone is multiple Determine the target resource corresponding to the task.
延时风控子模块,用于进行任务的延时风控。可选地,记录任务标识为已分发的任务的等待处理时间;若所述等待处理时间超过时间阈值,则将任务标识为已分发的任务对应的任务标识更新为未分发。进一步可选地,记录任务对应的重置次数;所述重置次数为将任务标识为已分发的任务对应的任务标识更新为未分发的次数;若所述任务对应的重置次数超过次数阈值,则针对所述任务进行预置处理;所述预置处理可以包括:输出提示信息;和/或,依据所述任务对应的目标时区,对所述任务对应的资源进行扩充。Delayed wind control sub-module for delaying wind control of tasks. Optionally, the record task is identified as a waiting processing time of the distributed task; if the waiting processing time exceeds the time threshold, the task identifier corresponding to the task identified as the distributed task is updated to be undistributed. Further, optionally, the number of resets corresponding to the task is recorded; the number of resets is the number of times the task identifier corresponding to the task that has been distributed is updated to be undistributed; if the number of resets corresponding to the task exceeds the threshold And performing preset processing on the task; the preset processing may include: outputting prompt information; and/or expanding the resource corresponding to the task according to the target time zone corresponding to the task.
任务特征资源匹配子模块,用于依据资源对应的历史任务处理数据,得到资源与任务特征之间的映射关系,并依据资源与任务特征之间的映射关系、以及所述任务对应的任务特征,从多个所述目标时区信息对应的资源中选择一个,作为所述任务对应的目标资源,这样可以提高目标资源与任务所对应任务特征之间的匹配度。例如,工作人员A-1和工作人员B-1当前时间均能够处理某任务,但由于工作人员A-1擅长处理鉴图任务,工作人员B-1擅长处理服饰鉴损任务,而该任务对应的任务类型为鉴图,则可以选择工 作人员A-1进行该任务的处理。The task feature resource matching sub-module is configured to process data according to the historical task corresponding to the resource, obtain a mapping relationship between the resource and the task feature, and according to the mapping relationship between the resource and the task feature, and the task feature corresponding to the task, Selecting one of the resources corresponding to the plurality of target time zone information as the target resource corresponding to the task, so as to improve the matching degree between the target resource and the task feature corresponding to the task. For example, staff A-1 and staff B-1 can handle a certain task at the current time, but because staff A-1 is good at handling the mapping task, staff B-1 is good at handling the apparel damage task, and the task corresponds to The task type is the map, then the staff A-1 can be selected to handle the task.
任务分发模块805,用于向所述目标资源分发所述任务,以使所述目标资源处理所述任务。The task distribution module 805 is configured to distribute the task to the target resource, so that the target resource processes the task.
综上,本申请实施例的任务处理装置,任务对应的目标时区可用于表征当前时间能够处理所述任务的时区,资源对应的时区信息可用于表征资源所处的时区,这样,可以将任务对应的目标时区内的资源作为任务对应的目标资源,进而可以利用所述目标资源处理所述任务;由于本申请实施例可以利用当前时间能够处理所述任务的时区内的资源,对任务进行处理,因此可以降低任务的处理延迟,以及可以提高任务的处理效率。在上述任务为服务任务的情况下,本申请实施例可以降低服务任务的服务周期、提高服务任务的响应性能,且可以提升用户的服务体验。In summary, in the task processing apparatus of the embodiment of the present application, the target time zone corresponding to the task may be used to represent the time zone in which the current time can process the task, and the time zone information corresponding to the resource may be used to represent the time zone in which the resource is located, so that the task may be corresponding. The resource in the target time zone is used as the target resource corresponding to the task, and the task can be processed by using the target resource. The embodiment of the present application can process the resource in the time zone of the task by using the current time, and process the task. Therefore, the processing delay of the task can be reduced, and the processing efficiency of the task can be improved. In the case that the foregoing task is a service task, the embodiment of the present application can reduce the service period of the service task, improve the response performance of the service task, and improve the service experience of the user.
对于装置实施例而言,由于其与方法实施例基本相似,故描述的比较简单,相似的地方请相互参照即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and similar places should be referred to each other.
本申请实施例的实施例可被实现为使用任意适当的硬件和/或软件进行想要的配置的系统或装置。图9示意性地示出了可被用于实现本申请中所述的各个实施例的示例性装置900。Embodiments of embodiments of the present application can be implemented as a system or apparatus for performing a desired configuration using any suitable hardware and/or software. FIG. 9 schematically illustrates an exemplary apparatus 900 that can be used to implement various embodiments described in this application.
对于一个实施例,图9示出了示例性装置900,该装置900可以包括:一个或多个处理器902、与处理器902中的至少一个耦合的系统控制模块(芯片组)904、与系统控制模块904耦合的系统存储器906、与系统控制模块904耦合的非易失性存储器(NVM)/存储装置908、与系统控制模块904耦合的一个或多个输入/输出设备910,以及与系统控制模块906耦合的网络接口912。该系统存储器906可以包括:指令962,该指令962可被一个或多个处理器902执行。For one embodiment, FIG. 9 illustrates an exemplary apparatus 900 that can include one or more processors 902, a system control module (chipset) 904 coupled to at least one of the processors 902, and a system Control system 904 coupled system memory 906, non-volatile memory (NVM)/storage 908 coupled to system control module 904, one or more input/output devices 910 coupled to system control module 904, and system control Module 906 is coupled to a network interface 912. The system memory 906 can include instructions 962 that can be executed by one or more processors 902.
处理器902可包括一个或多个单核或多核处理器,处理器902可包括通用处理器或专用处理器(例如图形处理器、应用程序处理器、基带处理器等)的任意组合。在一些实施例中,装置900能够作为本申请实施例中所述的服务器、目标设备、无线设备等。 Processor 902 can include one or more single or multiple core processors, and processor 902 can comprise any combination of general purpose or special purpose processors (eg, graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 900 can be a server, a target device, a wireless device, or the like as described in the embodiments of the present application.
在一些实施例中,装置900可包括具有指令的一个或多个机器可读介质(例如,系统存储器906或NVM/存储装置908)以及与该一个或多个机器可读介质相合并被配置为执行指令、以实现前述装置包括的模块、从而执行本申请实施例中所述的动作的一个或多个处理器902。In some embodiments, apparatus 900 can include and be integrated with one or more machine-readable media (eg, system memory 906 or NVM/storage 908) having instructions configured to One or more processors 902 that execute instructions to implement the modules included in the foregoing apparatus, thereby performing the actions described in the embodiments of the present application.
一个实施例的系统控制模块904可包括任何适合的接口控制器,用于提供任何适合的接口给处理器902中的至少一个和/或与系统控制模块904通信的任意适合的装置或部 件。The system control module 904 of an embodiment can include any suitable interface controller for providing any suitable interface to at least one of the processors 902 and/or any suitable device or component in communication with the system control module 904.
一个实施例的系统控制模块904可包括一个或多个存储器控制器,用于提供接口给系统存储器906。存储器控制器可以是硬件模块、软件模块和/或固件模块。The system control module 904 of an embodiment may include one or more memory controllers for providing an interface to the system memory 906. The memory controller can be a hardware module, a software module, and/or a firmware module.
一个实施例的系统存储器906可被用于加载和存储数据和/或指令962。对于一个实施例,系统存储器906可包括任何适合的易失性存储器,例如,适合的DRAM(动态随机存取存储器)。在一些实施例中,系统存储器906可包括:双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。System memory 906 of one embodiment can be used to load and store data and/or instructions 962. For one embodiment, system memory 906 can include any suitable volatile memory, such as a suitable DRAM (Dynamic Random Access Memory). In some embodiments, system memory 906 can include: double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
一个实施例的系统控制模块904可包括一个或多个输入/输出控制器,以向NVM/存储装置908及(一个或多个)输入/输出设备910提供接口。The system control module 904 of an embodiment may include one or more input/output controllers to provide an interface to the NVM/storage device 908 and the input/output device(s) 910.
一个实施例的NVM/存储装置908可被用于存储数据和/或指令982。NVM/存储装置908可包括任何适合的非易失性存储器(例如闪存等)和/或可包括任何适合的(一个或多个)非易失性存储设备,例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器等。NVM/storage 908 of an embodiment can be used to store data and/or instructions 982. NVM/storage 908 may comprise any suitable non-volatile memory (eg, flash memory, etc.) and/or may include any suitable non-volatile storage device(s), such as one or more hard drives ( HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives, and the like.
NVM/存储装置908可包括在物理上是装置900被安装在其上的装置的一部分的存储资源,或者其可被该装置访问而不必作为该装置的一部分。例如,NVM/存储装置908可经由网络接口912通过网络和/或通过输入/输出设备910进行访问。NVM/storage 908 may include storage resources that are physically part of the device on which device 900 is installed, or that may be accessed by the device without necessarily being part of the device. For example, NVM/storage 908 can be accessed via network interface 912 through the network and/or through input/output device 910.
一个实施例的(一个或多个)输入/输出设备910可为装置900提供接口以与任意其他适当的设备通信,输入/输出设备910可以包括通信组件、音频组件、传感器组件等。The input/output device(s) 910 of an embodiment can provide an interface for device 900 to communicate with any other suitable device, and input/output device 910 can include a communication component, an audio component, a sensor component, and the like.
一个实施例的网络接口912可为装置900提供接口以通过一个或多个网络和/或与任何其他适合的装置通信,装置900可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信,例如接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合进行无线通信。 Network interface 912 of an embodiment may provide an interface for device 900 to communicate over one or more networks and/or with any other suitable device, and device 900 may be in accordance with any of one or more wireless network standards and/or protocols. And/or protocols to wirelessly communicate with one or more components of the wireless network, such as accessing a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof for wireless communication.
对于一个实施例,处理器902中的至少一个可与系统控制模块904的一个或多个控制器(例如,存储器控制器)的逻辑封装在一起。对于一个实施例,处理器902中的至少一个可与系统控制模块904的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,处理器902中的至少一个可与系统控制模块904的一个或多个控制器的逻辑集成在同一新品上。对于一个实施例,处理器902中的至少一个可与系统控制模块904的一个或多个控制器的逻辑集成在同一芯片上以形成片上系统(SoC)。For one embodiment, at least one of the processors 902 can be packaged with logic of one or more controllers (eg, memory controllers) of the system control module 904. For one embodiment, at least one of the processors 902 can be packaged with the logic of one or more controllers of the system control module 904 to form a system in package (SiP). For one embodiment, at least one of the processors 902 can be integrated with the logic of one or more controllers of the system control module 904 on the same new product. For one embodiment, at least one of the processors 902 can be integrated on the same chip as the logic of one or more controllers of the system control module 904 to form a system on chip (SoC).
在各个实施例中,装置900可以包括但不限于:台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等计算设备。在各个实施例中, 装置900可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,装置900可以包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, device 900 may include, but is not limited to, a computing device such as a desktop computing device or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, device 900 may have more or fewer components and/or different architectures. For example, in some embodiments, device 900 can include one or more cameras, keyboards, liquid crystal display (LCD) screens (including touch screen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits (ASIC) and speakers.
其中,如果显示器包括触摸面板,显示屏可以被实现为触屏显示器,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。Wherein, if the display comprises a touch panel, the display screen can be implemented as a touch screen display to receive an input signal from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在装置时,可以使得该装置执行本申请实施例中各方法的指令(instructions)。The embodiment of the present application further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to the device, the device may be executed. The instructions of each method in the embodiments of the present application.
在一个示例中提供了一种装置,包括:一个或多个处理器;和,其上存储的一个或多个机器可读介质中的指令,由所述一个或多个处理器执行时,导致所述装置执行如本申请实施例中的方法,该方法可以包括:图2或者图3或图4或图5或图6所示的方法。Provided in one example is an apparatus comprising: one or more processors; and instructions in one or more machine readable mediums stored thereon, when executed by the one or more processors, resulting in The apparatus performs the method as in the embodiment of the present application, and the method may include the method shown in FIG. 2 or FIG. 3 or FIG. 4 or FIG. 5 or FIG.
在一个示例中还提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如本申请实施例中的方法,该方法可以包括:图2或者图3或图4或图5或图6所示的方法。Also provided in one example is one or more machine readable medium having instructions stored thereon that, when executed by one or more processors, cause the apparatus to perform a method as in the embodiments of the present application, the method comprising: The method shown in Figure 2 or Figure 3 or Figure 4 or Figure 5 or Figure 6.
以上对本申请所提供的一种任务处理方法、一种任务处理装置和一种装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed description of a task processing method, a task processing device, and a device provided by the present application. The principles and implementation manners of the present application are described in the specific examples, and the description of the above embodiments is described. It is only used to help understand the method of the present application and its core ideas; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in specific implementation manners and application scopes. The contents of this specification are not to be construed as limiting the application.

Claims (21)

  1. 一种任务处理方法,其特征在于,包括:A task processing method, comprising:
    提供资源、以及所述资源对应的时区信息;Providing resources and time zone information corresponding to the resources;
    获取任务;Get the task;
    依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;Determining, according to the target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone in which the current time can process the task;
    利用所述目标资源处理所述任务。The task is processed using the target resource.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    提供资源的属性信息;Provide attribute information of the resource;
    所述从所述资源中确定所述任务对应的目标资源,包括:Determining the target resource corresponding to the task from the resources, including:
    确定所述目标时区信息对应的资源;所述目标时区对应的资源为多个;Determining a resource corresponding to the target time zone information; the target time zone corresponds to multiple resources;
    依据所述资源的属性信息,从所述目标时区对应的多个资源中确定所述任务对应的目标资源。Determining, according to the attribute information of the resource, a target resource corresponding to the task from a plurality of resources corresponding to the target time zone.
  3. 根据权利要求2所述的方法,其特征在于,所述属性信息包括如下信息中的至少一种:The method according to claim 2, wherein the attribute information comprises at least one of the following information:
    成本信息、质量信息和资源与任务特征之间的映射关系。Cost information, quality information, and mapping between resources and task characteristics.
  4. 根据权利要求3所述的方法,所述从所述目标时区对应的多个资源中确定所述任务对应的目标资源,包括:The method according to claim 3, wherein determining the target resource corresponding to the task from the plurality of resources corresponding to the target time zone comprises:
    依据所述资源的成本信息和质量信息,确定所述资源对应的资源回报信息;Determining resource return information corresponding to the resource according to the cost information and the quality information of the resource;
    依据所述资源对应的资源回报信息,从所述目标时区对应的多个资源中选择所述任务对应的目标资源。And selecting, according to the resource return information corresponding to the resource, the target resource corresponding to the task from the plurality of resources corresponding to the target time zone.
  5. 根据权利要求3或4所述的方法,其特征在于,所述质量信息为依据所述资源对应的历史任务处理数据得到。The method according to claim 3 or 4, wherein the quality information is obtained by processing data according to historical tasks corresponding to the resources.
  6. 根据权利要求3或4所述的方法,其特征在于,所述质量信息包括:所述资源对应的历史任务数量、历史任务质量信息和历史任务处理时间信息中的至少一种。The method according to claim 3 or 4, wherein the quality information comprises at least one of a historical task quantity, historical task quality information, and historical task processing time information corresponding to the resource.
  7. 根据权利要求3所述的方法,其特征在于,所述资源与任务特征之间的映射关系为依据所述资源对应的历史任务处理数据得到。The method according to claim 3, wherein the mapping relationship between the resource and the task feature is obtained according to historical task processing data corresponding to the resource.
  8. 根据权利要求3所述的方法,其特征在于,通过如下步骤建立所述资源与任务特征之间的映射关系:The method according to claim 3, wherein the mapping relationship between the resource and the task feature is established by the following steps:
    依据所述资源对应的历史任务处理数据,确定所述资源对应的历史任务信息;所述 历史任务信息包括:历史任务特征、历史任务处理信息;Determining historical task information corresponding to the resource according to historical task processing data corresponding to the resource; the historical task information includes: historical task characteristics and historical task processing information;
    依据所述资源对应的历史任务信息,建立所述资源与任务特征之间的映射关系。And establishing a mapping relationship between the resource and the task feature according to historical task information corresponding to the resource.
  9. 根据权利要求1至4中任一所述的方法,其特征在于,所述利用所述目标资源处理所述任务,包括:The method according to any one of claims 1 to 4, wherein the processing the task by using the target resource comprises:
    向所述目标资源分发所述任务,以使所述目标资源处理所述任务。Distributing the task to the target resource to cause the target resource to process the task.
  10. 根据权利要求9所述的方法,其特征在于,所述任务对应有任务标识,在向所述目标资源分发所述任务之前所述任务标识为未分发,在向所述目标资源分发所述任务之后所述任务标识为已分发;The method according to claim 9, wherein the task corresponds to a task identifier, the task identifier is undistributed before the task is distributed to the target resource, and the task is distributed to the target resource. The task is then identified as distributed;
    则所述方法还包括:Then the method further includes:
    记录任务标识为已分发的任务的等待处理时间;Record the task ID as the waiting time for the distributed task;
    若所述等待处理时间超过时间阈值,则将任务标识为已分发的任务对应的任务标识更新为未分发。If the waiting processing time exceeds the time threshold, the task identifier corresponding to the task identified as being distributed is updated to be undistributed.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    记录任务对应的重置次数;所述重置次数为将任务标识为已分发的任务对应的任务标识更新为未分发的次数;Recording the number of resets corresponding to the task; the number of resets is the number of times the task identifier corresponding to the task identified as being distributed is updated to be undistributed;
    若所述任务对应的重置次数次数超过次数阈值,则针对所述任务进行预置处理;If the number of times of resetting corresponding to the task exceeds the threshold of the number of times, performing preset processing on the task;
    所述预置处理包括:The preset processing includes:
    输出提示信息;和/或Output prompt information; and/or
    依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充。And expanding resources corresponding to the task according to the target time zone information corresponding to the task.
  12. 根据权利要求1至4中任一所述的方法,其特征在于,所述任务包括服务任务,所述服务任务为依据用户输入的服务请求得到。The method according to any one of claims 1 to 4, wherein the task comprises a service task, the service task being obtained according to a service request input by a user.
  13. 一种任务处理装置,其特征在于,包括:A task processing device, comprising:
    第一提供模块,用于提供资源、以及所述资源对应的时区信息;a first providing module, configured to provide a resource, and time zone information corresponding to the resource;
    任务获取模块,用于获取任务;a task acquisition module for acquiring a task;
    目标资源确定模块,用于依据所述任务对应的目标时区信息,从所述资源中确定所述任务对应的目标资源;所述目标时区用于表征当前时间能够处理所述任务的时区;以及a target resource determining module, configured to determine, according to the target time zone information corresponding to the task, a target resource corresponding to the task from the resource; the target time zone is used to represent a time zone in which the current time can process the task;
    任务处理模块,用于利用所述目标资源处理所述任务。a task processing module for processing the task with the target resource.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    第二提供模块,用于提供资源的属性信息;a second providing module, configured to provide attribute information of the resource;
    所述目标资源确定模块包括:The target resource determining module includes:
    第一确定子模块,用于确定所述目标时区信息对应的资源;所述目标时区对应的资源为多个;以及a first determining submodule, configured to determine a resource corresponding to the target time zone information; the target time zone corresponds to multiple resources;
    第二确定子模块,用于依据所述资源的属性信息,从所述目标时区对应的多个资源中确定所述任务对应的目标资源。And a second determining submodule, configured to determine, according to the attribute information of the resource, a target resource corresponding to the task from multiple resources corresponding to the target time zone.
  15. 根据权利要求14所述的装置,其特征在于,所述属性信息包括如下信息中的至少一种:The apparatus according to claim 14, wherein said attribute information comprises at least one of the following information:
    成本信息、质量信息和资源与任务特征之间的映射关系。Cost information, quality information, and mapping between resources and task characteristics.
  16. 根据权利要求15所述的装置,所述第二确定子模块包括:The apparatus according to claim 15, wherein the second determining submodule comprises:
    资源回报信息确定单元,用于依据所述资源的成本信息和质量信息,确定所述资源对应的资源回报信息;以及a resource return information determining unit, configured to determine resource return information corresponding to the resource according to the cost information and the quality information of the resource;
    选择单元,用于依据所述资源对应的资源回报信息,从所述目标时区对应的多个资源中选择所述任务对应的目标资源。And a selecting unit, configured to select, according to the resource return information corresponding to the resource, the target resource corresponding to the task from the plurality of resources corresponding to the target time zone.
  17. 根据权利要求13至16中任一所述的装置,其特征在于,所述任务处理模块包括:The apparatus according to any one of claims 13 to 16, wherein the task processing module comprises:
    任务分发子模块,用于向所述目标资源分发所述任务,以使所述目标资源处理所述任务。a task distribution sub-module for distributing the task to the target resource to cause the target resource to process the task.
  18. 根据权利要求17所述的装置,其特征在于,所述任务对应有任务标识,在向所述目标资源分发所述任务之前所述任务标识为未分发,在向所述目标资源分发所述任务之后所述任务标识为已分发;The apparatus according to claim 17, wherein said task corresponds to a task identifier, said task identifier being undistributed before distributing said task to said target resource, said task being distributed to said target resource The task is then identified as distributed;
    则所述装置还包括:Then the device further comprises:
    第一记录模块,用于记录任务标识为已分发的任务的等待处理时间;a first recording module, configured to record a waiting time for the task identified as a distributed task;
    更新模块,用于若所述等待处理时间超过时间阈值,则将任务标识为已分发的任务对应的任务标识更新为未分发。And an update module, configured to update the task identifier corresponding to the task that has been distributed to be undistributed if the waiting processing time exceeds the time threshold.
  19. 根据权利要求18所述的装置,其特征在于,所述装置还包括:The device of claim 18, wherein the device further comprises:
    第二记录模块,用于记录任务对应的重置次数;所述重置次数为将任务标识为已分发的任务对应的任务标识更新为未分发的次数;a second recording module, configured to record a resetting number corresponding to the task; the resetting number is a number of times that the task identifier corresponding to the task that is identified as being distributed is updated to be undistributed;
    预置处理模块,用于若所述任务对应的重置次数次数超过次数阈值,则针对所述任务进行预置处理;a preset processing module, configured to perform preset processing on the task if the number of times of resetting corresponding to the task exceeds a threshold number of times;
    所述预置处理模块包括:The preset processing module includes:
    提示子模块,用于输出提示信息;和/或a prompt sub-module for outputting prompt information; and/or
    资源扩充子模块,用于依据所述任务对应的目标时区信息,对所述任务对应的资源进行扩充。The resource expansion sub-module is configured to expand resources corresponding to the task according to the target time zone information corresponding to the task.
  20. 一种任务处理装置,其特征在于,包括:A task processing device, comprising:
    一个或多个处理器;和One or more processors; and
    其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如权利要求1至12中一个或多个所述的方法。One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform the method of one or more of claims 1-12.
  21. 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1至12中一个或多个所述的方法。One or more machine-readable medium having stored thereon instructions that, when executed by one or more processors, cause the apparatus to perform the method of one or more of claims 1-12.
PCT/CN2019/071356 2018-01-19 2019-01-11 Task processing method, device and machine readable medium WO2019141133A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810054989.2A CN110059901A (en) 2018-01-19 2018-01-19 Task processing method, device and machine readable media
CN201810054989.2 2018-01-19

Publications (1)

Publication Number Publication Date
WO2019141133A1 true WO2019141133A1 (en) 2019-07-25

Family

ID=67301977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071356 WO2019141133A1 (en) 2018-01-19 2019-01-11 Task processing method, device and machine readable medium

Country Status (2)

Country Link
CN (1) CN110059901A (en)
WO (1) WO2019141133A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241159A (en) * 2020-01-08 2020-06-05 山东汇贸电子口岸有限公司 Method and device for determining task execution time
CN112099949A (en) * 2020-09-11 2020-12-18 北京奇艺世纪科技有限公司 Task distribution control method and device, electronic equipment and storage medium
CN112269833A (en) * 2020-11-03 2021-01-26 政采云有限公司 Platform product information generation method, device, equipment and readable storage medium
CN112486529A (en) * 2020-11-19 2021-03-12 深圳拓邦股份有限公司 Global equipment timing upgrading method, system, server and storage medium
CN112686697A (en) * 2020-12-29 2021-04-20 百果园技术(新加坡)有限公司 Multi-dimension-based user behavior data processing method and device
CN113190339A (en) * 2021-05-26 2021-07-30 中国工商银行股份有限公司 Task processing method and device
CN113220439A (en) * 2021-06-03 2021-08-06 北京奇艺世纪科技有限公司 Equipment on-line control method and device, electronic equipment and readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597447A (en) * 2020-05-14 2020-08-28 拉扎斯网络科技(上海)有限公司 Object pushing method and device, electronic equipment and storage medium
CN115150030B (en) * 2021-03-31 2024-02-06 北京金山云网络技术有限公司 Data processing method, device, electronic equipment, storage medium and system
CN114240157B (en) * 2021-12-17 2023-05-23 中国电信股份有限公司 Robot scheduling method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150309714A1 (en) * 2014-04-23 2015-10-29 Oracle International Corporation Navigating interactive visualizations with collaborative filtering
CN105915519A (en) * 2016-04-18 2016-08-31 Ubiix有限公司 Cross-time-zone incoming all diverting service method and system, and service terminal employed by same
CN106027596A (en) * 2016-04-27 2016-10-12 乐视控股(北京)有限公司 Task distributing method and device
CN106209411A (en) * 2015-05-08 2016-12-07 阿里巴巴集团控股有限公司 Distributed network system (DNS) fault-tolerance approach, device and fault tolerant type distributed network system (DNS)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150309714A1 (en) * 2014-04-23 2015-10-29 Oracle International Corporation Navigating interactive visualizations with collaborative filtering
CN106209411A (en) * 2015-05-08 2016-12-07 阿里巴巴集团控股有限公司 Distributed network system (DNS) fault-tolerance approach, device and fault tolerant type distributed network system (DNS)
CN105915519A (en) * 2016-04-18 2016-08-31 Ubiix有限公司 Cross-time-zone incoming all diverting service method and system, and service terminal employed by same
CN106027596A (en) * 2016-04-27 2016-10-12 乐视控股(北京)有限公司 Task distributing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241159A (en) * 2020-01-08 2020-06-05 山东汇贸电子口岸有限公司 Method and device for determining task execution time
CN111241159B (en) * 2020-01-08 2023-07-07 山东汇贸电子口岸有限公司 Method and device for determining task execution time
CN112099949A (en) * 2020-09-11 2020-12-18 北京奇艺世纪科技有限公司 Task distribution control method and device, electronic equipment and storage medium
CN112099949B (en) * 2020-09-11 2023-09-05 北京奇艺世纪科技有限公司 Task distribution control method and device, electronic equipment and storage medium
CN112269833A (en) * 2020-11-03 2021-01-26 政采云有限公司 Platform product information generation method, device, equipment and readable storage medium
CN112486529A (en) * 2020-11-19 2021-03-12 深圳拓邦股份有限公司 Global equipment timing upgrading method, system, server and storage medium
CN112686697A (en) * 2020-12-29 2021-04-20 百果园技术(新加坡)有限公司 Multi-dimension-based user behavior data processing method and device
CN113190339A (en) * 2021-05-26 2021-07-30 中国工商银行股份有限公司 Task processing method and device
CN113190339B (en) * 2021-05-26 2024-04-09 中国工商银行股份有限公司 Task processing method and device
CN113220439A (en) * 2021-06-03 2021-08-06 北京奇艺世纪科技有限公司 Equipment on-line control method and device, electronic equipment and readable storage medium
CN113220439B (en) * 2021-06-03 2023-08-18 北京奇艺世纪科技有限公司 Device online control method and device, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN110059901A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
WO2019141133A1 (en) Task processing method, device and machine readable medium
US10937125B2 (en) Resource-utilization-based workload re-allocation system
WO2018177235A1 (en) Block chain consensus method and device
US11790250B2 (en) Using computational cost and instantaneous load analysis for intelligent deployment of neural networks on multiple hardware executors
US20210224722A1 (en) Method for determining amount of time spent on a task and estimating amount of time required to complete the task
US10754704B2 (en) Cluster load balancing based on assessment of future loading
CN106293914B (en) A kind of method and terminal of task schedule
US20190279297A1 (en) Credit scoring method and server
US11604813B2 (en) Method for classifying and grouping users based on user activities
US11182216B2 (en) Auto-scaling cloud-based computing clusters dynamically using multiple scaling decision makers
WO2018086467A1 (en) Method, apparatus and system for allocating resources of application clusters under cloud environment
WO2019024060A1 (en) Data storage method and device, and storage medium
US11221876B2 (en) Scheduling applications in CPU and GPU hybrid environments
US20150066598A1 (en) Predicting service delivery costs under business changes
WO2020134698A1 (en) Operation request allocation method, apparatus and device
US20170083384A1 (en) Systems for parallel processing of datasets with dynamic skew compensation
WO2020019783A1 (en) Event prediction method and apparatus, and electronic device
US20230222002A1 (en) Techniques for modifying cluster computing environments
CN106991071B (en) Kernel scheduling method and system
WO2022161050A1 (en) Promotion task processing method and apparatus, storage medium and electronic device
Chen et al. A method of virtual machine placement for fault-tolerant cloud applications
US20210390502A1 (en) Determining a fulfillment location for an expedited package request
CN109614270A (en) Data read-write method, device, equipment and storage medium based on Hbase
CA3139693A1 (en) Dynamic allocation of computing resources
EP3991097A1 (en) Managing workloads of a deep neural network processor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19741634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19741634

Country of ref document: EP

Kind code of ref document: A1