Scheduled task configuration method and device, equipment and medium

By obtaining and processing detailed information of planned tasks, combining preset templates and expressions to generate target configuration results, the problem of low efficiency and accuracy of complex planned tasks is solved, and efficient planning task configuration is achieved.

CN119645590APending Publication Date: 2025-03-18INFORMATION2 SOFTWARE SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411692300.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively configure complex planning tasks, resulting in low configuration efficiency and accuracy.

Method used

By obtaining the plan type, time configuration items and time window items of the current planned task, determine the target configuration template, and combine the pre-designed task expression and time window fields to generate the target configuration results.

Benefits of technology

It realizes efficient time configuration of complex planned tasks, and improves the configuration efficiency and accuracy of planned tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645590A_ABST
    Figure CN119645590A_ABST
Patent Text Reader

Abstract

The invention discloses a planned task configuration method and device, equipment and a medium. The method comprises the steps of obtaining a current plan type, a current time configuration item and a current time window item corresponding to a current plan task, and determining a target configuration template corresponding to the current plan task in a preset template set based on the current plan type; based on the current time configuration item, the target configuration template and a preset plan task expression, determining a basic configuration result corresponding to the current plan task; and based on the current time window item and a preset time window label, generating a target window field corresponding to the current plan task, and performing combined processing on the target window field and the basic configuration result to generate a target configuration result corresponding to the current plan task. Through the technical scheme of the invention, the configuration of the complex plan task can be realized, and the configuration efficiency and accuracy of the plan task are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of application development technology, and in particular to a method, device, equipment and medium for configuring a planned task. Background Art

[0002] In the process of developing the front end of the World Wide Web (Web), time selection is a common configuration item. Through time configuration, pre-planned work can be executed at the agreed time, thereby improving the efficiency of Web development.

[0003] In the prior art, the basic time selector in the front-end component library or the standard scheduled task (Cron) expression is usually used for time configuration. However, although the configuration method in the prior art can complete the time configuration of simple scheduled tasks, for example, the time configuration of a fixed time point or a fixed time period. But for more complex, complete and long-term scheduled tasks, such as including an execution time window and executing on the last day or last week of each month regardless of how many days there are in the month, the configuration method in the prior art cannot be configured on demand, which reduces the configuration efficiency and accuracy of complex scheduled tasks. Therefore, how to achieve the time configuration of complex scheduled tasks and improve the configuration efficiency and accuracy of scheduled tasks is a problem that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a method, device, equipment and medium for configuring a planned task, which can solve the problem of low configuration efficiency and accuracy of complex planned tasks.

[0005] According to one aspect of the present invention, a method for configuring a planned task is provided, comprising:

[0006] Obtaining a current plan type, a current time configuration item, and a current time window item corresponding to a current plan task, and determining a target configuration template corresponding to the current plan task in a preset template set based on the current plan type;

[0007] Determine the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression;

[0008] Based on the current time window item and the preset time window label, a target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined and processed to generate a target configuration result corresponding to the current planned task.

[0009] According to another aspect of the present invention, there is provided a device for configuring a planned task, comprising:

[0010] The template matching module is used to obtain the current plan type, current time configuration item and current time window item corresponding to the current plan task, and determine the target configuration template corresponding to the current plan task in the preset template set based on the current plan type;

[0011] A first configuration module, configured to determine a basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and a preset planned task expression;

[0012] The second configuration module is used to generate a target window field corresponding to the current planned task based on the current time window item and the preset time window label, and to combine and process the target window field with the basic configuration result to generate a target configuration result corresponding to the current planned task.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for configuring a planned task described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for configuring a planned task described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method for configuring a planned task as described in any embodiment of the present invention is implemented.

[0019] The technical solution of the embodiment of the present invention determines the target configuration template corresponding to the current planned task in the preset template set based on the current plan type corresponding to the current planned task, and then determines the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression corresponding to the current planned task. Finally, based on the current time window item and the preset time window label corresponding to the current planned task, the target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current planned task. Since the configuration result is determined by the extended preset planned task expression, the problem of low configuration efficiency and accuracy of complex planned tasks is solved, the time configuration of complex planned tasks can be realized, and the configuration efficiency and accuracy of planned tasks are improved.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flowchart of a method for configuring a planned task provided according to Embodiment 1 of the present invention;

[0023] Figure 2 is a flow chart of a method for configuring a planned task provided according to Embodiment 2 of the present invention;

[0024] Figure 3 is a schematic diagram of a first planning task template provided according to Embodiment 2 of the present invention;

[0025] Figure 4 is a schematic diagram of a second planning task template provided according to Embodiment 2 of the present invention;

[0026] Figure 5 is a schematic diagram of a third planning task template provided according to the second embodiment of the present invention;

[0027] Figure 6 is a schematic diagram of a fourth planning task template provided according to the second embodiment of the present invention;

[0028] Figure 7is a schematic diagram of a plan summary provided according to Embodiment 2 of the present invention;

[0029] Figure 8 is a flowchart of an optional method for configuring a scheduled task provided according to Embodiment 2 of the present invention;

[0030] Fig. 9 is a structural diagram of a configuration device for a planned task provided according to Embodiment 3 of the present invention;

[0031] Fig.10 It is a structural diagram of an electronic device for implementing the method for configuring a planned task according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", "target", "initial", "base", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 This is a flow chart of a method for configuring a scheduled task provided in the first embodiment of the present invention. This embodiment is applicable to the case of configuring the time of a complex scheduled task. The method can be executed by a device for configuring a scheduled task. The device for configuring a scheduled task can be implemented in the form of hardware and / or software. The device for configuring a scheduled task can be configured in an electronic device. Figure 1 As shown, the method includes:

[0036] S110, obtaining a current plan type, a current time configuration item, and a current time window item corresponding to a current plan task, and determining a target configuration template corresponding to the current plan task in a preset template set based on the current plan type.

[0037] Among them, a planned task may refer to a task that is pre-planned to be implemented at an expected time point or time period. A current planned task may refer to a planned task that is currently planned. Exemplarily, the program can be re-traversed on Tuesdays of the second, third, and fourth weeks of each month and on Saturdays of the third week. It is worth noting that in the embodiment of the present invention, improvements are mainly made to the time configuration of the planned tasks, and the specific implementation content of each planned task is not limited. In addition, in the embodiment of the present invention, the number of current planned tasks is at least one.

[0038] Among them, the current plan type may refer to the time configuration type corresponding to the current plan task. In an optional embodiment, the current plan type may include: an immediate execution type, a one-time task type, an hourly execution type, a daily execution type, a weekly execution type, and a monthly execution type. The immediate execution type may refer to the type of realizing the current plan task immediately when the current plan task is generated. The one-time task type may refer to the type of executing the current plan task only once. Exemplarily, the current plan task of the one-time task type may be a program traversal after 2 hours. The hourly execution type may refer to a type of task execution with an hour as the time configuration period. Exemplarily, the current plan task of the hourly execution type may be a program traversal every 2 hours. The daily execution type may refer to a type of task execution with a day as the time configuration period. Exemplarily, the current plan task of the daily execution type may be a program traversal every 2 days. The weekly execution type may refer to a type of task execution with a week as the time configuration period. Exemplarily, the current plan task of the weekly execution type may be a program traversal every 2 weeks. The monthly execution type may refer to a type of task execution with a month as the time configuration period. For example, the current scheduled task of the monthly execution type may be to traverse the program once every 2 months.

[0039] Among them, the time configuration item may refer to the specific time configuration period corresponding to the planned task. The current time configuration item may refer to the time configuration item corresponding to the current planned task. For example, if the current planned task is to re-traverse the program on Tuesdays of the second, third, and fourth weeks of each month and on Saturdays of the third week, then the current time configuration item may be Tuesdays of the second, third, and fourth weeks of each month and on Saturdays of the third week. The time window item may refer to the actual running window period after the planned execution time is reached. For example, the user can set the time window item according to actual needs. Usually, the time window item defaults to 7×24, that is, 24 hours a day for seven days, and executes around the clock. The current time window item may refer to the time window item corresponding to the current planned task.

[0040] The preset template set may refer to a pre-built time configuration template set. Generally, the preset template set may include time configuration templates corresponding to various plan types. The time configuration templates corresponding to different plan types are generally different. The target configuration template may refer to the time configuration template corresponding to the current plan type.

[0041] S120: Determine a basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and a preset planned task expression.

[0042] Among them, the preset scheduled task expression may refer to a pre-set scheduled task expression. An example may be an extended Cron expression. Cron expression is a time expression used to run a program within a specified time interval. Usually, a basic Cron expression consists of 5 fields, each of which represents a different time unit, including minutes, hours, days, months, and weeks. Among them, the asterisk "*" represents all possible values, and the slash " / " is used to represent the time interval. For example, "* / 5****" can mean running every five minutes. The comma "," is used to separate multiple values. For example, "1,3,5" can mean the 1st, 3rd, and 5th minutes. The dash "-" is used to specify a range. For example, "1-5" can mean from the 1st minute to the 5th minute.

[0043] However, in actual applications, users may need to configure time configuration items that cannot be expressed by basic Cron expressions. For example, users may need to configure time configuration items for fixed time points or time periods that change periodically. Such as the last day of each month, the second Monday, and the last Tuesday. Therefore, an embodiment of the present invention may select an extended Cron expression as a preset scheduled task expression. The extended Cron expression is extended on the basis of the basic Cron expression using the symbols "#" and "L". Among them, the symbol "L" can represent the last. For example, "012L*" can represent the last day of each month, and "012**2L" can represent the last Tuesday. The symbol "#" can represent the day of the week of a certain month. For example, "012**1#2" can represent the second Monday.

[0044] Among them, the basic configuration result can refer to the configuration result corresponding to the current scheduled task determined according to the current time configuration item, the target configuration template and the preset scheduled task expression. Usually, the basic configuration result is the result in the Cron expression format. Therefore, the time configuration of complex scheduled tasks can be realized through the preset scheduled task expression.

[0045] S130. Based on the current time window item and the preset time window label, generate a target window field corresponding to the current planned task, and combine and process the target window field with the basic configuration result to generate a target configuration result corresponding to the current planned task.

[0046] Among them, the preset time window label may refer to a preset label page for selecting a time window item. The window field may refer to a coding field corresponding to the time window item. Exemplarily, the window field may be in the style of "wday: week, from: start time, end: end time". The target window field may refer to the window field matched by the current time window item corresponding to the current scheduled task. The target configuration result may refer to the final configuration result combining the target window field and the basic configuration result.

[0047] The technical solution of the embodiment of the present invention determines the target configuration template corresponding to the current planned task in the preset template set based on the current plan type corresponding to the current planned task, and then determines the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression corresponding to the current planned task. Finally, based on the current time window item and the preset time window label corresponding to the current planned task, the target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current planned task. Since the configuration result is determined by the extended preset planned task expression, the problem of low configuration efficiency and accuracy of complex planned tasks is solved, the time configuration of complex planned tasks can be realized, and the configuration efficiency and accuracy of planned tasks are improved.

[0048] Embodiment 2

[0049] Figure 2 A flowchart of a method for configuring a planned task provided in the second embodiment of the present invention. This embodiment is refined based on the above-mentioned embodiment. In this embodiment, the operation of determining a basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression is specifically refined. It may include: filling and processing the target configuration template based on the current time configuration item to generate an initial configuration result corresponding to the current planned task; determining a target planned task expression corresponding to the current plan type in the preset planned task expression based on the current plan type, and converting and processing the initial configuration result based on the target planned task expression to generate a basic configuration result corresponding to the current planned task. Figure 2 As shown, the method includes:

[0050] S210: Obtain the current plan type, current time configuration item and current time window item corresponding to the current plan task.

[0051] Specifically, before obtaining the current plan type, current time configuration items and current time window items corresponding to the current plan task, a table and a button can be generated in the page through JavaScript, and the user can pre-plan the current plan task according to the actual application needs. After that, the user triggers the button to generate a configuration pop-up window, wherein the configuration pop-up window includes a preset time configuration page and a preset time window tab. Further, the current plan type and current time configuration items corresponding to the current plan task are input into the preset time configuration page in the form of drop-down item selection or manual input, and the current time window items corresponding to the current plan task are input into the preset time window tab in the form of mouse click and drag or click the reset button. In this way, the current plan type, current time configuration items and current time window items corresponding to the current plan task can be obtained, providing an effective basis for subsequent operations.

[0052] S220: If the current plan type is an immediate execution type or a one-time task type, a non-planned task template is determined in a preset template set as a target configuration template corresponding to the current planned task.

[0053] Among them, the non-planned task template may refer to a time configuration template corresponding to a non-periodic planned task. Exemplarily, the non-planned task template may include a fill bit for the start effective time of the planned task. Usually, the effective time defaults to the current time and cannot be earlier than the current system time.

[0054] S230. If the current plan type is an hourly execution type, determine the first planned task template in the preset template set as the target configuration template corresponding to the current planned task; wherein the first planned task template includes every hour.

[0055] The first planned task template may refer to a time configuration template corresponding to a planned task of an hourly execution type. Figure 3 The diagram shows a first planned task template provided by an embodiment of the present invention. Exemplarily, the first planned task template may include a starting time filling position and an every hour position of the planned task. The every hour position may refer to a position for filling every hour item.

[0056] S240. If the current plan type is a daily execution type, a second plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the second plan task template includes digits for every other day.

[0057] The second planned task template may refer to a time configuration template corresponding to a planned task of a daily execution type. Figure 4The diagram of a second planned task template provided by an embodiment of the present invention is shown. Exemplarily, the second planned task template may include a starting time filling position and a number of days for the planned task. The number of days for each day may refer to a position for filling in the number of days for each day item.

[0058] S250. If the current plan type is a weekly execution type, a third plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; wherein the third plan task template includes all months and all common weeks.

[0059] The third planned task template may refer to a time configuration template corresponding to a planned task of a weekly execution type. Figure 5 Shown is a schematic diagram of a third planned task template provided by an embodiment of the present invention. Exemplarily, the third planned task template may include a fill-in bit for the start effective time of the planned task, a full amount of months, and a full amount of common weeks. The full amount of months may refer to all months in a year. Exemplarily, the full amount of months may be from January to December. Common weeks may refer to weeks that may be included in each pre-set month. Exemplarily, common weeks may be the first week, the second week, the third week, the fourth week, and the last week. The full amount of common weeks may refer to all pre-set common weeks.

[0060] S260. If the current plan type is a monthly execution type, determine the fourth plan task template in the preset template set as the target configuration template corresponding to the current plan task; wherein the fourth plan task template includes all months and all common days.

[0061] Among them, the fourth planned task template may refer to a time configuration template corresponding to a planned task of a monthly execution type. Figure 6 The diagram shows a fourth planned task template provided by an embodiment of the present invention. Exemplarily, the fourth planned task template may include a fill-in bit for the start time of the planned task, a full amount of months, and a full amount of common days. Common days may refer to the number of days that may be included in each pre-set month. Exemplarily, the common days may be 1 to 31 days and the last day. The full amount of common days may refer to all pre-set common days.

[0062] It is worth noting that in an embodiment of the present invention, when the user selects the current plan type, the corresponding target configuration template is loaded into the preset time configuration page according to the current plan type, so that the user can fill the target configuration template with the current time configuration items. This is not elaborated in the embodiment of the present invention.

[0063] S270: Fill and process the target configuration template based on the current time configuration item to generate an initial configuration result corresponding to the current planned task.

[0064] The initial configuration result may refer to a configuration result generated by filling a configuration position in a target configuration template based on a current time configuration item.

[0065] Specifically, after the user selects the current plan type, the corresponding target configuration template can be determined according to the current plan type. Furthermore, after the user inputs the current time configuration item based on the target configuration template, the initial configuration result corresponding to the current plan task can be generated according to the configuration position of the current time configuration item in the target configuration template, providing an effective basis for subsequent operations.

[0066] It is worth noting that if the current plan type is an hourly execution type, the current time configuration item must be an integer between 1 and 24; if the current plan type is a daily execution type, the current time configuration item must be an integer between 1 and 30; if the current plan type is a weekly execution type, you can traverse the checked results or quick select all results, and concatenate the selected weeks and months to determine the current time configuration item; if the current plan type is a monthly execution type, you can traverse the checked results or quick select all results, and concatenate the selected months and days to determine the current time configuration item.

[0067] S280. Determine a target plan task expression corresponding to the current plan type in a preset plan task expression based on the current plan type, and convert and process the initial configuration result based on the target plan task expression to generate a basic configuration result corresponding to the current plan task.

[0068] Among them, the target plan task expression can refer to the extended Cron expression corresponding to the current plan type. For example, if the current plan type is an hourly execution type, the target plan task expression can be "0* / h***", where h represents the input hour. If the current plan type is a daily execution type, the target plan task expression can be "00* / d00", where d represents the input day. If the current plan type is a weekly execution type, the target plan task expression can be "00*mw", where m represents the month and w represents "week # week number". If the current plan type is a monthly execution type, the target plan task expression can be "00md m*", where md represents the day of the month.

[0069] It is worth noting that if the current plan type is an immediate execution type or a one-time task type, there are no other configurable items, so there is no need to determine the corresponding target plan task expression in the preset plan task expression. In addition, if there are multiple current plan tasks, the current plan task of the immediate execution type or the one-time task type cannot be time-configured together with other types of current plan tasks.

[0070] Among them, the conversion process may refer to the operation of converting the initial configuration result into an expression structure according to the target scheduled task expression. For example, if the initial configuration result is every three days, the basic configuration result corresponding to the current scheduled task may be "00* / 3**". If the initial configuration result is all months and Tuesdays of the 2nd, 3rd, and 4th weeks and Saturday of the third week, the basic configuration result corresponding to the current scheduled task may be "00*1,2,3,4,5,6,7,8,9,10,11,122#2,2#3,6#3,2#4". If the initial configuration result is March, April, August and all the days in the month, the basic configuration result corresponding to the current scheduled task can be "001,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,L 3,4,8*".

[0071] Specifically, after the user inputs the current time configuration item, fills in the processing target configuration template based on the current time configuration item, and generates the initial configuration result corresponding to the current planned task, the target planned task expression corresponding to the current plan type can be determined in the preset planned task expression according to the current plan type, and the initial configuration result can be converted into a structure consistent with the format of the target planned task expression based on the target planned task expression to generate the basic configuration result corresponding to the current planned task, thereby providing an effective basis for subsequent operations.

[0072] S290. Determine a window configuration result corresponding to the current planned task in a preset time window tag based on the current time window item.

[0073] The window configuration result may refer to a configuration result generated after filling in a preset time window label based on the current time window item.

[0074] Specifically, the preset time window label usually contains a rectangle divided by 0-24 hours horizontally and Sunday to Monday vertically. Each rectangular block represents one hour. The selected rectangular block, that is, the time block, is represented by green, and the unselected one is represented by white. All are selected by default. Usually, the user can quickly check the required time by clicking and dragging the mouse, or reset the selected time by pressing the reset button. If more precise time control is required, you can click Modify Time and configure the time accurate to the minute in the pop-up window. Among them, in order to reflect the change of minutes in the time block, the background-color is no longer used for the time block style configured with minutes, but the background-image: linear-gradient method is used. Therefore, when the user performs relevant operations in the preset time window label, the current time window item corresponding to the current scheduled task can be generated, and then, according to the filling position of the current time window item in the preset time window label, the window configuration result corresponding to the current scheduled task is obtained, providing an effective basis for subsequent operations.

[0075] S2100: Process the window configuration result based on the preset conversion format data to generate a target window field corresponding to the current planned task.

[0076] The preset conversion format may refer to a preset format conversion standard of the window configuration result. Exemplarily, the preset conversion format may be a "wday: weekday, from: start time, end: end time" style.

[0077] Specifically, after determining the window configuration result corresponding to the current scheduled task in the preset time window tag based on the current time window item, the window configuration result can be converted into a style consistent with the preset conversion format according to the preset conversion format. For example, if the window configuration result is a time period from 12:00 to 24:00 on Sunday, the target window field can be [{wday:0,from:"12:00",to:"23:59"}].

[0078] S2110. Combine and process the target window field and the basic configuration result to generate a target configuration result corresponding to the current planned task.

[0079] Specifically, after the target window field and the basic configuration result are generated, the target window field and the basic configuration result corresponding to the same current planned task may be combined, thereby generating the target configuration result corresponding to the current planned task.

[0080] In an optional embodiment, after the target window field and the basic configuration result are combined and processed to generate the target configuration result corresponding to the current scheduled task, the method may further include: obtaining the naming configuration requirement corresponding to the current scheduled task, and generating the naming configuration item corresponding to the current scheduled task based on the naming configuration requirement. Among them, the naming configuration requirement may refer to the name setting requirement determined by the user according to the actual application environment. Exemplarily, the naming configuration requirement may include the plan name corresponding to the current scheduled task and the project name to which the current scheduled task belongs. The naming configuration item may refer to the name configuration result corresponding to the current scheduled task determined according to the naming configuration requirement. Exemplarily, if the naming configuration requirement is to set the name of the scheduled task to be by day, the naming configuration item may be by day. Specifically, after generating the target configuration result corresponding to the current scheduled task, the corresponding naming configuration item may be generated for the current scheduled task according to the user's naming configuration requirement for the current scheduled task. It is worth noting that the data of each naming configuration item is independent of each other and inconsistent with each other. Thus, confusion among multiple scheduled tasks can be prevented.

[0081] In an optional embodiment, after the target window field and the basic configuration result are combined and processed to generate the target configuration result corresponding to the current planned task, it may also include: converting the target configuration result into a plan summary corresponding to the current planned task based on a preset planned task expression conversion rule, and filling the plan summary into a preset table for display. Among them, the preset planned task expression conversion rule may refer to a rule for converting a preset planned task expression into a text version. Exemplarily, the preset planned task expression conversion rule may be a rule for text conversion according to the field meaning of the preset planned task expression. The plan summary may refer to the result of converting the target configuration result into a table text. The preset table may refer to a preset storage table. Exemplarily, the preset table may include key fields such as name, plan type and plan summary.

[0082] Figure 7The figure shows a schematic diagram of a plan summary provided by an embodiment of the present invention. Specifically, after generating the target configuration result corresponding to the current plan task, the target configuration result can be converted into the plan summary corresponding to the current plan task according to the preset plan task expression conversion rule. Exemplarily, if the target configuration result 1 is a named configuration item: "by day", the basic configuration result: "00* / 3**, plan effective time: 2024-09-2510:31:41" and the target window field "[{wday:0,from:"12:00",to:"23:59"}]"; the target configuration result 2 is a named configuration item: "by week", the basic configuration result: "00*1,2,3,4,5,6,7,8,9,10,11,122#2,2#3,6#3,2#4, The planned effective time is 2024-09-25 10:31:41" and the target window field is '[{wday:0,from:"12:00",to:"23:59"}]'; the target configuration result 3 is the named configuration item: 'Monthly', the basic configuration result is '001,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,L 3,4,8*, the planned effective time is 2024-09-25 10:31:41" and the target window field is '[{wday:0,from:"12:00",to:"23:59"}]'. Then the plan summary corresponding to target configuration result 1 can be "Run every three days, and the plan takes effect at 2024-09-25 10:31:41", the plan summary corresponding to target configuration result 2 can be "Jan, Feb, Mar, Jan, Mar, Jun ...

[0083] The technical solution of the embodiment of the present invention is to obtain the current plan type, current time configuration item and current time window item corresponding to the current plan task. If the current plan type is an immediate execution type or a one-time task type, a non-plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; if the current plan type is an hourly execution type, a first plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; if the current plan type is a daily execution type, a second plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; if the current plan type is a weekly execution type, a third plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; if the current plan type is a monthly execution type, a fourth plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task. Afterwards, the target configuration template is filled and processed based on the current time configuration item to generate the initial configuration result corresponding to the current plan task, and the target plan task expression corresponding to the current plan type is determined in the preset plan task expression based on the current plan type, and the initial configuration result is processed based on the target plan task expression conversion, and the basic configuration result corresponding to the current plan task is generated. Furthermore, the window configuration result corresponding to the current scheduled task is determined in the preset time window label based on the current time window item, and the window configuration result is processed based on the preset conversion format data to generate the target window field corresponding to the current scheduled task. Finally, the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current scheduled task. Since the configuration result is determined by the extended preset scheduled task expression, the problem of low configuration efficiency and accuracy of complex scheduled tasks is solved, the time configuration of complex scheduled tasks can be realized, and the configuration efficiency and accuracy of scheduled tasks are improved.

[0084] Figure 8The flowchart of an optional method for configuring a scheduled task provided by an embodiment of the present invention is shown. Specifically, first, the current plan type corresponding to the current scheduled task is determined according to the user input, and the target configuration template corresponding to the current scheduled task is determined in the preset template set based on the current plan type. After that, the current time configuration item corresponding to the current scheduled task input by the user is obtained, and the target configuration template is filled and processed based on the current time configuration item to generate the initial configuration result corresponding to the current scheduled task, and the target scheduled task expression corresponding to the current plan type is determined in the preset scheduled task expression based on the current plan type, and the initial configuration result is processed based on the target scheduled task expression conversion, and the basic configuration result corresponding to the current scheduled task is generated. Further, the current time window item corresponding to the current scheduled task input by the user is obtained, and the window configuration result corresponding to the current scheduled task is determined in the preset time window label based on the current time window item, and the window configuration result is processed based on the preset conversion format data to generate the target window field corresponding to the current scheduled task. Finally, the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current scheduled task, and the naming configuration requirement corresponding to the current scheduled task is obtained, and the naming configuration item corresponding to the current scheduled task is generated based on the naming configuration requirement. Thus, the time configuration of the current scheduled task is completed.

[0085] Embodiment 3

[0086] Fig. 9 This is a schematic diagram of a configuration device for a planned task provided in Embodiment 3 of the present invention. Fig. 9 As shown, the device includes: a template matching module 310, a first configuration module 320 and a second configuration module 330;

[0087] The template matching module 310 is used to obtain the current plan type, current time configuration item and current time window item corresponding to the current plan task, and determine the target configuration template corresponding to the current plan task in the preset template set based on the current plan type;

[0088] A first configuration module 320, configured to determine a basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and a preset planned task expression;

[0089] The second configuration module 330 is used to generate a target window field corresponding to the current planned task based on the current time window item and the preset time window label, and combine and process the target window field with the basic configuration result to generate a target configuration result corresponding to the current planned task.

[0090] The technical solution of the embodiment of the present invention determines the target configuration template corresponding to the current planned task in the preset template set based on the current plan type corresponding to the current planned task, and then determines the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression corresponding to the current planned task. Finally, based on the current time window item and the preset time window label corresponding to the current planned task, the target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current planned task. Since the configuration result is determined by the extended preset planned task expression, the problem of low configuration efficiency and accuracy of complex planned tasks is solved, the time configuration of complex planned tasks can be realized, and the configuration efficiency and accuracy of planned tasks are improved.

[0091] Optionally, the current plan type includes: an immediate execution type, a one-time task type, an hourly execution type, a daily execution type, a weekly execution type, and a monthly execution type.

[0092] Optionally, the template matching module 310 may be specifically used for:

[0093] If the current plan type is an immediate execution type or a one-time task type, a non-planned task template is determined in a preset template set as a target configuration template corresponding to the current planned task;

[0094] If the current plan type is an hourly execution type, a first plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the first plan task template includes every hour;

[0095] If the current plan type is a daily execution type, a second plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the second plan task template includes a number for every day;

[0096] If the current plan type is a weekly execution type, a third plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the third plan task template includes all months and all public weeks;

[0097] If the current plan type is a monthly execution type, the fourth plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; wherein the fourth plan task template includes all months and all common days.

[0098] Optionally, the first configuration module 320 may be specifically used for:

[0099] Fill and process the target configuration template based on the current time configuration item to generate an initial configuration result corresponding to the current planned task;

[0100] Based on the current plan type, a target plan task expression corresponding to the current plan type is determined in a preset plan task expression, and the initial configuration result is converted and processed based on the target plan task expression to generate a basic configuration result corresponding to the current plan task.

[0101] Optionally, the second configuration module 330 may be specifically used for:

[0102] Determine the window configuration result corresponding to the current scheduled task in the preset time window tag based on the current time window item;

[0103] The window configuration result is processed based on the preset conversion format data to generate a target window field corresponding to the current planned task.

[0104] Optionally, the configuration device for the planned task may also include: a third configuration module, which is used to obtain the naming configuration requirements corresponding to the current planned task after the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current planned task, and generate the naming configuration items corresponding to the current planned task based on the naming configuration requirements.

[0105] Optionally, the configuration device of the planned task may also include: a summary filling module, which is used to convert the target configuration result into a plan summary corresponding to the current planned task based on a preset planned task expression conversion rule after the target window field and the basic configuration result are combined to generate the target configuration result corresponding to the current planned task, and fill the plan summary into a preset table for display.

[0106] The device for configuring a planned task provided in an embodiment of the present invention can execute the method for configuring a planned task provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0107] Embodiment 4

[0108] Fig.10A schematic diagram of an electronic device 410 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0109] like Fig.10 As shown, the electronic device 410 includes at least one processor 420, and a memory connected to the at least one processor 420 in communication, such as a read-only memory (ROM) 430, a random access memory (RAM) 440, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 420 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 430 or the computer program loaded from the storage unit 490 to the random access memory (RAM) 440. In the RAM 440, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 420, the ROM 430, and the RAM 440 are connected to each other via a bus 450. An input / output (I / O) interface 460 is also connected to the bus 450.

[0110] Multiple components in the electronic device 410 are connected to the I / O interface 460, including: an input unit 470, such as a keyboard, a mouse, etc.; an output unit 480, such as various types of displays, speakers, etc.; a storage unit 490, such as a disk, an optical disk, etc.; and a communication unit 4100, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 4100 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0111] The processor 420 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 420 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 420 performs the various methods and processes described above, such as a configuration method for a scheduled task.

[0112] The method includes:

[0113] Obtaining a current plan type, a current time configuration item, and a current time window item corresponding to a current plan task, and determining a target configuration template corresponding to the current plan task in a preset template set based on the current plan type;

[0114] Determine the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression;

[0115] Based on the current time window item and the preset time window label, a target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined and processed to generate a target configuration result corresponding to the current planned task.

[0116] In some embodiments, the method for configuring a scheduled task may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 490. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 430 and / or the communication unit 4100. When the computer program is loaded into the RAM 440 and executed by the processor 420, one or more steps of the method for configuring a scheduled task described above may be performed. Alternatively, in other embodiments, the processor 420 may be configured to execute the method for configuring a scheduled task in any other appropriate manner (e.g., by means of firmware).

[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0121] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0123] The present application also discloses a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for configuring a scheduled task provided in any embodiment of the present application is implemented. The program product and the method for configuring a scheduled task disclosed in each embodiment of the present application belong to the same inventive concept, so they are not described here.

[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0125] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for configuring a planned task, characterized in that: include: Obtaining a current plan type, a current time configuration item, and a current time window item corresponding to a current plan task, and determining a target configuration template corresponding to the current plan task in a preset template set based on the current plan type; Determine the basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and the preset planned task expression; Based on the current time window item and the preset time window label, a target window field corresponding to the current planned task is generated, and the target window field and the basic configuration result are combined and processed to generate a target configuration result corresponding to the current planned task.

2. The method according to claim 1, characterized in that The current plan type includes: an immediate execution type, a one-time task type, an hourly execution type, a daily execution type, a weekly execution type, and a monthly execution type.

3. The method according to claim 2, characterized in that The determining, based on the current plan type, a target configuration template corresponding to the current plan task in a preset template set includes: If the current plan type is an immediate execution type or a one-time task type, a non-planned task template is determined in a preset template set as a target configuration template corresponding to the current planned task; If the current plan type is an hourly execution type, a first plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the first plan task template includes every hour; If the current plan type is a daily execution type, a second plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the second plan task template includes a number for every day; If the current plan type is a weekly execution type, a third plan task template is determined in the preset template set as a target configuration template corresponding to the current plan task; wherein the third plan task template includes all months and all public weeks; If the current plan type is a monthly execution type, the fourth plan task template is determined in the preset template set as the target configuration template corresponding to the current plan task; wherein the fourth plan task template includes all months and all common days.

4. The method according to claim 1, characterized in that: The determining, based on the current time configuration item, the target configuration template and the preset planned task expression, a basic configuration result corresponding to the current planned task includes: Fill and process the target configuration template based on the current time configuration item to generate an initial configuration result corresponding to the current planned task; Based on the current plan type, a target plan task expression corresponding to the current plan type is determined in a preset plan task expression, and the initial configuration result is converted and processed based on the target plan task expression to generate a basic configuration result corresponding to the current plan task.

5. The method according to claim 1, characterized in that The generating, based on the current time window item and the preset time window label, a target window field corresponding to the current planned task includes: Determine the window configuration result corresponding to the current scheduled task in the preset time window tag based on the current time window item; The window configuration result is processed based on the preset conversion format data to generate a target window field corresponding to the current planned task.

6. The method according to claim 1, characterized in that After the target window field and the basic configuration result are combined and processed to generate the target configuration result corresponding to the current planned task, the method further includes: Obtain a naming configuration requirement corresponding to a current planned task, and generate a naming configuration item corresponding to the current planned task based on the naming configuration requirement.

7. The method according to claim 1, characterized in that After the target window field and the basic configuration result are combined and processed to generate the target configuration result corresponding to the current planned task, the method further includes: The target configuration result is converted into a plan summary corresponding to the current plan task based on the preset plan task expression conversion rule, and the plan summary is filled into a preset table for display.

8. A device for configuring a planned task, characterized in that: include: The template matching module is used to obtain the current plan type, current time configuration item and current time window item corresponding to the current plan task, and determine the target configuration template corresponding to the current plan task in the preset template set based on the current plan type; A first configuration module, configured to determine a basic configuration result corresponding to the current planned task based on the current time configuration item, the target configuration template and a preset planned task expression; The second configuration module is used to generate a target window field corresponding to the current planned task based on the current time window item and the preset time window label, and to combine and process the target window field with the basic configuration result to generate a target configuration result corresponding to the current planned task.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for configuring a planned task according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for configuring a planned task according to any one of claims 1 to 7 when the processor executes the instructions.