CN115357350A - Task configuration method and device, electronic equipment and computer readable medium - Google Patents

Task configuration method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115357350A
CN115357350A CN202210899103.0A CN202210899103A CN115357350A CN 115357350 A CN115357350 A CN 115357350A CN 202210899103 A CN202210899103 A CN 202210899103A CN 115357350 A CN115357350 A CN 115357350A
Authority
CN
China
Prior art keywords
task
type
page
selection
box
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210899103.0A
Other languages
Chinese (zh)
Inventor
朱路
王艳达
王鹏
沈金波
盛现东
邹金强
袁梦龙
崔凯
付成刚
孔绿绿
刘国建
吕冠男
缪敏
彭超
唐量辉
陶醉
王智伟
杨立刚
袁飞
李谦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Zeshan Software Technology Co ltd
Original Assignee
Hainan Zeshan Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Zeshan Software Technology Co ltd filed Critical Hainan Zeshan Software Technology Co ltd
Priority to CN202210899103.0A priority Critical patent/CN115357350A/en
Publication of CN115357350A publication Critical patent/CN115357350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a task configuration method, a task configuration device, an electronic device and a computer readable medium. One embodiment of the method comprises: responding to a received task creating instruction sent by a target user, and displaying a task creating page; displaying a multi-type task configuration page in response to detecting a first selection operation acting on a multi-type task page control; displaying a data warehouse task configuration page in response to detecting a second selection operation acting on the data warehouse task type in the task type selection frame; in response to detecting a third selection operation acting on the task submission control, storing the task name input to the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box, and the task execution statement input to the task execution statement input box in the target database. According to the method and the device, the steps of task configuration can be simplified, and the uploading efficiency is improved.

Description

Task configuration method and device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computers, and in particular, to a task configuration method and apparatus, an electronic device, and a computer-readable medium.
Background
With the application of artificial intelligence technology in various industries in society, the demand for artificial intelligence algorithms and models also increases exponentially. At present, when creating and scheduling tasks in a cluster (for example, task tasks in a kubernets distributed cluster), the following methods are generally adopted: the task package is uploaded to the designated storage position manually, and then the task is executed in a first-in first-out mode.
However, the following technical problems may exist in the above manner:
firstly, operations such as task uploading and program execution generally relate to management authority, the steps are repeated and tedious, the uploading efficiency is low, and information leakage is easily caused;
secondly, tasks are executed in a first-in first-out mode, so that tasks which occupy less resources and are arranged after tasks which occupy more resources cannot be run in time, and waste of system resources is easily caused.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a task configuration method, apparatus, electronic device and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a task configuration method, including: responding to a received task creating instruction sent by a target user, and displaying a task creating page, wherein the task creating page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control; displaying a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control, wherein the multi-type task configuration page displays a task type selection box, and the task type selection box comprises at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type; responding to the detection of a second selection operation acting on the data warehouse task type in the task type selection frame, and displaying a data warehouse task configuration page, wherein the data warehouse task configuration page displays a task submission control, and also displays a task name input frame, a task queue selection frame, a task priority selection frame and a task execution statement input frame; and in response to detecting a third selection operation acting on the task submission control, storing the task name input into the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box and the task execution statement input into the task execution statement input box into a target database.
In a second aspect, some embodiments of the present disclosure provide a task configuration apparatus, the apparatus comprising: the first display unit is configured to respond to a received task creation instruction sent by a target user and display a task creation page, wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control; a second display unit configured to display a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control, wherein the multi-type task configuration page displays a task type selection box, and the task type selection box contains at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type; a third display unit configured to display a data warehouse task configuration page in response to detecting a second selection operation acting on a data warehouse task type in the task type selection frame, wherein the data warehouse task configuration page displays a task submission control, and the data warehouse task configuration page further displays a task name input frame, a task queue selection frame, a task priority selection frame, and a task execution statement input frame; a storage unit configured to store, in response to detecting a third selection operation acting on the task submission control, a task name input to the task name input box, a task queue name selected in the task queue selection box, a task priority selected in the task priority selection box, and a task execution statement input to the task execution statement input box in a target database.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following beneficial effects: through the task configuration method of some embodiments of the present disclosure, the steps of task uploading are simplified, the task uploading efficiency is improved, and the possibility of information leakage is reduced. Specifically, the reason why uploading is inefficient and information leakage is easily caused is that: operations such as task uploading and program execution generally relate to management authority, steps are repeated and tedious, uploading efficiency is low, and information leakage is easily caused. Based on this, the task configuration method of some embodiments of the present disclosure first displays a task creation page in response to receiving a task creation instruction sent by a target user. Wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control. Thus, the task can be directly configured in the task creation page. Next, in response to detecting a first selection operation acting on the multi-type task page control, a multi-type task configuration page is displayed. The multi-type task configuration page displays a task type selection frame, and the task type selection frame comprises at least one of the following task types: data warehouse task type, object-oriented task type, distributed task type. Therefore, the selected control is provided for configuring different types of tasks, and the different types of tasks can be configured quickly. The data warehouse task configuration page is then displayed in response to detecting a second selection operation that acts on the data warehouse task type in the task type selection box. The data warehouse task configuration page displays a task submitting control, and also displays a task name input box, a task queue selection box, a task priority selection box and a task execution statement input box. Thus, tasks of a data warehouse task type may be quickly configured in a data warehouse task configuration page. And finally, in response to detecting a third selection operation acting on the task submitting control, storing the task name input into the task name input box, the task queue name selected from the task queue selection box, the task priority selected from the task priority selection box and the task execution statement input into the task execution statement input box into a target database. Therefore, the configuration of the tasks can be directly completed in the task configuration page, and the database can be directly uploaded. Therefore, the steps of task configuration can be simplified, and the uploading efficiency is improved. And the task can be configured directly through the configuration page, so that the task can be uploaded quickly, and the possibility of information leakage is reduced.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a flow diagram of some embodiments of a task configuration method according to the present disclosure;
FIG. 2 is a schematic block diagram of some embodiments of a task configuration apparatus according to the present disclosure;
FIG. 3 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow diagram of some embodiments of a task configuration method according to the present disclosure. A flow 100 of some embodiments of a task configuration method according to the present disclosure is shown. The task configuration method comprises the following steps:
step 101, responding to the received task creating instruction sent by the target user, displaying a task creating page.
In some embodiments, an executing agent (e.g., a computing device) of the task configuration method may display a task creation page in response to receiving a task creation instruction sent by a target user. Wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control. Here, the task creation instruction may refer to a command to create a task. Here, the Task may refer to a Task in a kubernets distributed cluster. Here, the task creation page may refer to a page for creating different types of tasks. The multi-type task page control may be a page control for configuring a multi-type task. After clicking on the multi-type task page control, a jump may be made to the multi-type task configuration page. Here, a multi-type task may be a task comprising a data warehouse task type, an object-oriented task type, a distributed task type, and the like. Here, a data warehouse task type may refer to a Hive task type. The object-oriented task type may refer to a Python task type. The distributed task type may refer to a Spark task type. The periodic class task page control can be a page control for configuring a periodic class task. After clicking on the periodic task page control, a jump can be made to the periodic task configuration page. The associated task page control can be a page control for configuring the associated task. After clicking the associated task page control, a jump can be made to the associated task configuration page. The periodic type task may refer to a task that is performed once every preset time. An association-class task may refer to a plurality of tasks having an association relationship. For example, after the a task is executed, the B task is necessarily executed.
Step 102, in response to detecting a first selection operation acting on the multi-type task page control, displaying a multi-type task configuration page.
In some embodiments, the execution agent may display a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control. The multi-type task configuration page displays a task type selection frame, and the task type selection frame comprises at least one of the following task types: data warehouse task type, object-oriented task type, distributed task type. The first selection operation may include, but is not limited to: click, toggle, slide. The task type selection box may be used to select a task type. The data warehouse task type may refer to a Hive task type. The object-oriented task type may refer to a Python task type. The distributed task type may refer to a Spark task type.
And 103, responding to the detection of a second selection operation on the data warehouse task type in the task type selection frame, and displaying a data warehouse task configuration page.
In some embodiments, the execution principal may display a data warehouse task configuration page in response to detecting a second selection operation that acts on a data warehouse task type in the task type selection box. The data warehouse task configuration page displays a task submitting control, and also displays a task name input box, a task queue selection box, a task priority selection box and a task execution statement input box. The second selection operation may include, but is not limited to: click, toggle, slide. The task submission control may be used to submit task information configured in the data repository task configuration page. The task information may include task name, task queue, task priority, task execution statement. The task name input box may refer to an input box for inputting a task name. The task queue selection box may refer to a selection box for selecting a task queue. The task priority selection box may refer to a selection box for selecting a task priority. The task execution statement input box may refer to an input box for inputting a program statement of a task.
And 104, in response to detecting a third selection operation acting on the task submitting control, storing the task name input into the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box and the task execution statement input into the task execution statement input box into a target database.
In some embodiments, the execution body may store, in response to detecting a third selection operation on the task submission control, a task name input to the task name input box, a task queue name selected in the task queue selection box, a task priority selected in the task priority selection box, and a task execution statement input to the task execution statement input box in a target database. Wherein the third selecting operation may include, but is not limited to: click, toggle, slide. Here, the task name input to the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box, and the task execution statement input to the task execution statement input box may be input/selected by the technician. Here, the target database may refer to a database that is set in advance to store a task to be performed.
Optionally, in response to detecting a fourth selection operation on the object-oriented task type in the task type selection box, displaying an object-oriented task configuration page.
In some embodiments, the execution subject may display an object-oriented task configuration page in response to detecting a fourth selection operation on the object-oriented task type in the task type selection box. The object-oriented task configuration page displays an object task submitting control, and also displays an object task name input box, a priority selection box and a task execution script input box. The fourth selection operation may include, but is not limited to: click, toggle, slide. The object task submission control may be used to submit object-oriented task information configured in the object-oriented task configuration page. The object-oriented task information may include object task name, priority, task execution script. The object task name input box may refer to an input box for inputting an object task name. The priority selection box may refer to a selection box for selecting a task priority. The task execution script input box may refer to an input box for inputting an execution script of a task.
Optionally, in response to detecting a fifth selection operation on the object task submission control, storing the task name input to the object task name input box, the priority selected in the priority selection box, and the task execution script input to the task execution script input box in the target database.
In some embodiments, the execution agent may store, in response to detecting a fifth selection operation on the object task submission control, the task name input to the object task name input box, the priority selected in the priority selection box, and the task execution script input to the task execution script input box in the target database. Here, the fifth selection operation may include, but is not limited to: click, toggle, slide.
Optionally, in response to detecting a sixth selection operation acting on the distributed task type in the task type selection box, a task resource file management interface is displayed.
In some embodiments, the execution subject may display a task resource file management interface in response to detecting a sixth selection operation on a distributed task type in the task type selection box. The task resource file management interface displays a task resource file input box and a distributed task configuration control. Here, the sixth selection operation may include, but is not limited to: click, toggle, slide. Here, the task resource file input box may refer to an input box for inputting a task resource file. The distributed task configuration control may refer to a page control for configuring the distributed task. I.e., after clicking on the distributed task configuration control, a jump is made to the distributed task configuration page,
optionally, in response to detecting an input operation of the task resource file input to the task resource file input box and detecting a seventh selection operation acting on the distributed task configuration control, displaying a distributed task configuration page.
In some embodiments, the execution subject may display a distributed task configuration page in response to detecting an input operation of the task resource file input to the task resource file input box and detecting a seventh selection operation acting on the distributed task configuration control. The distributed task configuration page displays a submission control, a distributed task name input box, a distributed task queue selection box, a distributed task priority selection box and a task parameter input box. Here, the seventh selection operation may include, but is not limited to: click, toggle, slide. The submission control can be used to submit distributed task information configured in the distributed task configuration page. The distributed task information may include distributed task names, distributed task queues, distributed task priorities, and task parameters. The distributed task name input box may refer to an input box for inputting a distributed task name. The distributed task queue selection box may refer to a selection box for selecting a distributed task queue. The distributed task priority selection box may refer to a selection box for selecting a distributed task priority. The task parameter input box may refer to an input box for inputting parameters required to perform a task.
Optionally, in response to detecting an eighth selection operation acting on the submission control, storing the distributed task name input to the distributed task name input box, the distributed task queue selected in the distributed task queue selection box, the distributed task priority selected in the distributed task priority selection box, and the task parameter input to the task parameter input box in the target database.
In some embodiments, the execution agent may store, in response to detecting an eighth selection operation on the submission control, the distributed task name input to the distributed task name input box, the distributed task queue selected in the distributed task queue selection box, the distributed task priority selected in the distributed task priority selection box, and the task parameter input to the task parameter input box in the target database. Wherein, the distributed task name is a file name of the task resource file. Here, the eighth selecting operation may include, but is not limited to: click, toggle, slide.
Optionally, in response to detecting a first click operation acting on the periodic task page control, displaying a periodic task configuration page.
In some embodiments, the execution subject may display a periodic task configuration page in response to detecting a first click operation on the periodic task page control. And the periodic task configuration page displays a periodic task newly-added control. Here, the first click operation may refer to clicking a periodic-like task page control. The periodic class task configuration page may refer to a page for configuring a periodic class task. The period class task newly-added control can be a control for newly-added period class tasks.
Optionally, in response to detecting a second click operation acting on the cycle class task newly-added control, receiving a newly-added cycle class task, and adding the newly-added cycle class task to a cycle class task queue.
In some embodiments, the execution main body may receive a newly added periodic class task input by a user in response to detecting a second click operation acting on the periodic class task newly added control, and add the newly added periodic class task to the periodic class task queue. Here, the second click operation may refer to clicking a cycle-like task newly added control. Here, the periodic class task queue may be a queue for storing periodic class tasks.
Optionally, in response to detecting a third click operation on the association task page control, displaying an association task configuration page, and displaying an association task group on the association task configuration page.
In some embodiments, the execution subject may display an association-class task configuration page in response to detecting a third click operation on the association-class task page control, and display an association-class task group on the association-class task configuration page. The third click operation may refer to clicking an associated task page control.
Optionally, the related task group is sorted according to task execution times corresponding to related tasks in the related task group to obtain a related task sequence, and the related task sequence is stored in the target database.
In some embodiments, the execution main body may perform sorting processing on the association-type task group according to task execution time corresponding to an association-type task in the association-type task group to obtain an association-type task sequence, and store the association-type task sequence in the target database. In practice, the execution main body may perform sorting processing on the association task groups according to the sequence of task execution times corresponding to the association tasks in the association task groups to obtain association task sequences, and store the association task sequences in the target database.
Optionally, in response to receiving a task scheduling instruction sent by a target user, determining the remaining available task resources and the local remaining available task resources corresponding to the target user.
In some embodiments, the execution subject may determine, in response to receiving a task scheduling instruction sent by a target user, a remaining available task resource and a local remaining available task resource corresponding to the target user. Here, the task scheduling instruction may refer to a command to execute a task. In practice, different task scheduling resources may be partitioned for different users. In practice, the difference between the task scheduling resource divided to the target user and the task scheduling resource used by the current target user may be determined as the remaining available task resource. Here, the task scheduling resource used by the current target user may refer to a resource occupied by each task currently running and managed by the target user. The resource occupied by the task can be a memory occupied by the system when the system runs the task. A task scheduling resource may refer to the maximum memory of executable tasks that is partitioned to a certain user. The local remaining available task resources may refer to memory resources currently available for the execution subject to execute the task.
Optionally, the task resources actually available to the user are determined according to the remaining available task resources and the local remaining available task resources.
In some embodiments, the execution subject may determine the task resource actually available to the user according to the remaining available task resource and the local remaining available task resource. In practice, in response to determining that the remaining available task resources are less than or equal to the local remaining available task resources, determining the remaining available task resources as the actual available task resources for the user. And in response to determining that the residual available task resources are larger than the local residual available task resources, determining the local residual available task resources as the actual available task resources of the user.
Optionally, a task with a task execution resource smaller than or equal to the task resource actually available to the user is selected from the task queue corresponding to the target user as a task to be executed, so as to obtain a task group to be executed.
In some embodiments, the execution main body may select, from the task queue corresponding to the target user, a task whose corresponding task execution resource is less than or equal to the task resource actually available to the user as a task to be executed, so as to obtain a task group to be executed. Here, the task queue corresponding to the target user may refer to each task to be executed that is created in the execution main body by the target user in advance.
Optionally, according to the task group to be executed, executing task scheduling operation.
In some embodiments, the execution subject may execute a task scheduling operation according to the group of tasks to be executed. The tasks to be executed in the task group to be executed include: commit time and task priority. The higher the task priority, the faster the task is to be executed.
In practice, according to the task group to be executed, the execution main body may execute the task scheduling operation by:
and step one, according to the task priority included in the task group to be executed, performing descending processing on the task group to be executed to obtain a first task sequence to be executed. In practice, the execution main body may perform descending processing on the tasks to be executed in the task group to be executed according to priorities of the tasks included in the task group to be executed from large to small, so as to obtain a first task sequence to be executed.
And secondly, sequencing each first task to be executed with the same task priority in the first task sequence to be executed according to the submission time of the first task sequence to be executed to obtain a second task sequence to be executed as a target task execution sequence. In practice, for each first to-be-executed task with the same task priority included in the first to-be-executed task sequence, the first to-be-executed tasks may be sorted according to the order of the submission times corresponding to the first to-be-executed tasks.
Thirdly, for each target execution task in the target execution task sequence, executing the following processing steps:
the first substep, carry out the scheduling operation to the above-mentioned goal executive task. In practice, the execution subject may schedule the target execution task through a thread configured for executing the task.
And a second substep, updating the task resources actually available to the user according to the task occupied resources corresponding to the target execution task, so as to generate updated task resources available to the user. In practice, the difference between the actual available task resource of the user and the occupied task resource corresponding to the target execution task may be determined as the updated available task resource of the user.
And a third substep, in response to determining that the alternative executive task with the task occupation resource less than or equal to the updated user available task resource exists in the alternative executive task sequence, determining the alternative executive task with the task occupation resource less than or equal to the updated user available task resource in the alternative executive task sequence as the first alternative executive task, and obtaining a first alternative executive task group. And the alternative execution task sequence is a target execution task sequence with the target execution task removed.
And a fourth substep of selecting a number of first alternative executive tasks from the first alternative executive task group as a second alternative executive task group. And the second alternative execution task group meets the target condition. The target conditions may be: and the sum of the resources occupied by each task corresponding to the second alternative execution task group is less than or equal to the updated user available task resource.
And a fifth substep of executing task scheduling operations according to the second alternative execution task group. In practice, the execution body may execute the task scheduling operation through a thread configured to execute the task in advance.
The related content in the second sub-step to the fifth sub-step is taken as an invention point of the present disclosure, thereby solving the technical problem mentioned in the background art that the task is executed in a first-in first-out manner, which causes that the task with less resource occupied by the task after some tasks with more resource occupied by the task cannot be run in time, which is easy to cause the waste of system resource. ". The factors that easily cause the waste of system resources are as follows: the tasks are executed in a first-in first-out mode, so that the tasks which are arranged after the tasks which occupy more resources and occupy less resources cannot be operated in time, and waste of system resources is easily caused. If the above factors are solved, the effect of reducing the waste of system resources can be achieved. In order to achieve the effect, firstly, according to the task occupied resource corresponding to the target execution task, the task resource actually available to the user is updated, so as to generate the updated task resource available to the user. From this, it may be determined that task resources remain available to the current target user. And then, in response to determining that the alternative executive task with the task occupation resource less than or equal to the task resource available to the update user exists in the alternative executive task sequence, determining the alternative executive task with the task occupation resource less than or equal to the task resource available to the update user in the alternative executive task sequence as a first alternative executive task, and obtaining a first alternative executive task group. And the alternative execution task sequence is a target execution task sequence without the target execution task. Therefore, tasks which occupy less resources and are arranged after certain tasks which occupy more resources can be selected to run, so that the idle of system resources is avoided. Then, a number of first candidate execution tasks are selected from the first candidate execution task group as a second candidate execution task group. Thus, the task resources currently remaining available to the target user can be maximally utilized. Therefore, the problem that the task with less resources occupied by the task after some tasks with more resources occupied by the task cannot be operated in time is avoided. And finally, executing task scheduling operation according to the second alternative execution task group. Therefore, tasks which are arranged behind tasks which occupy more resources and are arranged and occupy less resources can be run in time. Meanwhile, the residual available task resources of the target user are utilized to the maximum extent, and the waste of system resources is reduced.
The above embodiments of the present disclosure have the following beneficial effects: through the task configuration method of some embodiments of the present disclosure, the steps of task uploading are simplified, the task uploading efficiency is improved, and the possibility of information leakage is reduced. Specifically, the reason why uploading is inefficient and information leakage is easily caused is that: operations such as task uploading and program execution generally relate to management authority, steps are repeated and tedious, uploading efficiency is low, and information leakage is easily caused. Based on this, the task configuration method of some embodiments of the present disclosure first displays a task creation page in response to receiving a task creation instruction sent by a target user. Wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control. Thus, the task can be directly configured in the task creation page. Next, in response to detecting a first selection operation acting on the multi-type task page control, a multi-type task configuration page is displayed. The multi-type task configuration page displays a task type selection box, and the task type selection box comprises at least one of the following task types: data warehouse task types, object-oriented task types, and distributed task types. Therefore, the selected control is provided for configuring different types of tasks, and the different types of tasks can be configured quickly. Then, in response to detecting a second selection operation that acts on the data warehouse task type in the task type selection box, a data warehouse task configuration page is displayed. The data warehouse task configuration page displays a task submitting control, and also displays a task name input box, a task queue selection box, a task priority selection box and a task execution statement input box. Thus, tasks of a data warehouse task type may be quickly configured in a data warehouse task configuration page. And finally, in response to detecting a third selection operation acting on the task submission control, storing the task name input into the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box and the task execution statement input into the task execution statement input box into a target database. Therefore, the configuration of the tasks can be directly completed in the task configuration page, and the database can be directly uploaded. Therefore, the steps of task configuration can be simplified, and the uploading efficiency is improved. And the task can be configured directly through the configuration page, so that the task can be uploaded quickly, and the possibility of information leakage is reduced.
With further reference to fig. 2, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a task configuration apparatus, which correspond to those of the method embodiments illustrated in fig. 1, and which may be applied in various electronic devices in particular.
As shown in FIG. 2, a task configuration device 200 of some embodiments includes: a first display unit 201, a second display unit 202, a third display unit 203, and a storage unit 204. The first display unit 201 is configured to display a task creation page in response to receiving a task creation instruction sent by a target user, where the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control; a second display unit 202 configured to display a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control, wherein the multi-type task configuration page displays a task type selection box, and the task type selection box comprises at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type; a third display unit 203, configured to display a data warehouse task configuration page in response to detecting a second selection operation acting on a data warehouse task type in the task type selection frame, where the data warehouse task configuration page displays a task submission control, and the data warehouse task configuration page further displays a task name input frame, a task queue selection frame, a task priority selection frame, and a task execution statement input frame; a storage unit 204 configured to store, in response to detection of a third selection operation acting on the task submission control, a task name input to the task name input box, a task queue name selected in the task queue selection box, a task priority selected in the task priority selection box, and a task execution statement input to the task execution statement input box in a target database.
It will be understood that the units described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 200 and the units included therein, and are not described herein again.
Referring now to FIG. 3, shown is a schematic block diagram of an electronic device 300 (e.g., a computing device) suitable for use in implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate with other devices, wireless or wired, to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 3 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 301, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with 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"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a received task creating instruction sent by a target user, and displaying a task creating page, wherein the task creating page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control; displaying a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control, wherein the multi-type task configuration page displays a task type selection box, and the task type selection box comprises at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type; responding to the detection of a second selection operation acting on the data warehouse task type in the task type selection frame, and displaying a data warehouse task configuration page, wherein the data warehouse task configuration page displays a task submission control, and also displays a task name input frame, a task queue selection frame, a task priority selection frame and a task execution statement input frame; and in response to detecting a third selection operation acting on the task submission control, storing the task name input into the task name input box, the task queue name selected from the task queue selection box, the task priority selected from the task priority selection box and the task execution statement input into the task execution statement input box into a target database.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, which may be described as: a processor includes a first display unit, a second display unit, a third display unit, and a storage unit. Where the names of these units do not constitute a limitation on the unit itself in some cases, for example, the first display unit may also be described as "a unit that displays a task creation page in response to receiving a task creation instruction sent by a target user".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (6)

1. A task configuration method, comprising:
in response to receiving a task creation instruction sent by a target user, displaying a task creation page, wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control;
in response to detecting a first selection operation acting on the multi-type task page control, displaying a multi-type task configuration page, wherein the multi-type task configuration page displays a task type selection box containing at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type;
in response to detecting a second selection operation acting on a data warehouse task type in the task type selection frame, displaying a data warehouse task configuration page, wherein the data warehouse task configuration page displays a task submission control, and further displays a task name input frame, a task queue selection frame, a task priority selection frame and a task execution statement input frame;
and in response to detecting a third selection operation acting on the task submission control, storing the task name input into the task name input box, the task queue name selected in the task queue selection box, the task priority selected in the task priority selection box and the task execution statement input into the task execution statement input box into a target database.
2. The method of claim 1, wherein the method further comprises:
in response to detecting a fourth selection operation of an object-oriented task type acting on the task type selection frame, displaying an object-oriented task configuration page, wherein the object-oriented task configuration page displays an object task submission control, and the object-oriented task configuration page also displays an object task name input frame, a priority selection frame and a task execution script input frame;
and in response to detecting a fifth selection operation acting on the object task submitting control, storing the task name input into the object task name input box, the priority selected in the priority selection box and the task execution script input into the task execution script input box into the target database.
3. The method of claim 1, wherein the method further comprises:
responding to a sixth selection operation which is detected to act on the distributed task type in the task type selection frame, and displaying a task resource file management interface, wherein the task resource file management interface displays a task resource file input frame and a distributed task configuration control;
responding to the detection of an input operation of a task resource file input to the task resource file input box and the detection of a seventh selection operation acting on the distributed task configuration control, and displaying a distributed task configuration page, wherein the distributed task configuration page displays a submission control, a distributed task name input box, a distributed task queue selection box, a distributed task priority selection box and a task parameter input box;
in response to detecting an eighth selection operation acting on the submission control, storing the distributed task name input to the distributed task name input box, the distributed task queue selected in the distributed task queue selection box, the distributed task priority selected in the distributed task priority selection box, and the task parameter input to the task parameter input box into the target database, wherein the distributed task name is a file name of the task resource file.
4. A task configuration apparatus, comprising:
a first display unit configured to display a task creation page in response to receiving a task creation instruction sent by a target user, wherein the task creation page displays at least one of the following controls: the system comprises a multi-type task page control, a periodic task page control and an associated task page control;
a second display unit configured to display a multi-type task configuration page in response to detecting a first selection operation acting on the multi-type task page control, wherein the multi-type task configuration page displays a task type selection box containing at least one of the following task types: a data warehouse task type, an object-oriented task type and a distributed task type;
a third display unit configured to display a data warehouse task configuration page in response to detecting a second selection operation acting on a data warehouse task type in the task type selection frame, wherein the data warehouse task configuration page displays a task submission control, and the data warehouse task configuration page further displays a task name input frame, a task queue selection frame, a task priority selection frame, and a task execution statement input frame;
a storage unit configured to store, in response to detecting a third selection operation acting on the task submission control, a task name input to the task name input box, a task queue name selected in the task queue selection box, a task priority selected in the task priority selection box, and a task execution statement input to the task execution statement input box into a target database.
5. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
6. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN202210899103.0A 2022-07-28 2022-07-28 Task configuration method and device, electronic equipment and computer readable medium Pending CN115357350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210899103.0A CN115357350A (en) 2022-07-28 2022-07-28 Task configuration method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210899103.0A CN115357350A (en) 2022-07-28 2022-07-28 Task configuration method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN115357350A true CN115357350A (en) 2022-11-18

Family

ID=84032841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210899103.0A Pending CN115357350A (en) 2022-07-28 2022-07-28 Task configuration method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115357350A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468233A (en) * 2023-04-06 2023-07-21 宝驷智慧物流(珠海)有限公司 Method for generating task group, method for controlling transportation equipment, device and medium
CN116880899A (en) * 2023-09-08 2023-10-13 国网信息通信产业集团有限公司 Task information association method, device, electronic equipment and computer readable medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468233A (en) * 2023-04-06 2023-07-21 宝驷智慧物流(珠海)有限公司 Method for generating task group, method for controlling transportation equipment, device and medium
CN116880899A (en) * 2023-09-08 2023-10-13 国网信息通信产业集团有限公司 Task information association method, device, electronic equipment and computer readable medium
CN116880899B (en) * 2023-09-08 2024-01-12 国网信息通信产业集团有限公司 Task information association method, device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN109523187B (en) Task scheduling method, device and equipment
CN115357350A (en) Task configuration method and device, electronic equipment and computer readable medium
WO2022151966A1 (en) Processing method and apparatus for language model, text generation method and apparatus, and medium
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN115145560B (en) Business orchestration method, apparatus, device, computer-readable medium, and program product
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN113722056A (en) Task scheduling method and device, electronic equipment and computer readable medium
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN113760488A (en) Method, device, equipment and computer readable medium for scheduling task
CN113392018B (en) Traffic distribution method and device, storage medium and electronic equipment
CN117236805B (en) Power equipment control method, device, electronic equipment and computer readable medium
CN113419841A (en) Message scheduling method and device, electronic equipment and computer readable medium
CN110489219B (en) Method, device, medium and electronic equipment for scheduling functional objects
CN116821187A (en) Database-based data processing method and device, medium and electronic equipment
CN112115154A (en) Data processing and data query method, device, equipment and computer readable medium
CN110619079A (en) Method and device for pushing information
CN112965827B (en) Information scheduling method and device, electronic equipment and computer medium
CN113806033B (en) Task execution method, device, server and medium for task system
CN112346728B (en) Device adaptation method, apparatus, device and computer readable medium
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN115328811B (en) Program statement testing method and device for industrial control network simulation and electronic equipment
CN116755889B (en) Data acceleration method, device and equipment applied to server cluster data interaction
CN114792258B (en) Information generation method and device, electronic equipment and computer readable medium
CN115994120B (en) Data file merging method, device, electronic equipment and computer readable medium

Legal Events

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