CN110825508A - Task management method based on Git - Google Patents

Task management method based on Git Download PDF

Info

Publication number
CN110825508A
CN110825508A CN201911058008.2A CN201911058008A CN110825508A CN 110825508 A CN110825508 A CN 110825508A CN 201911058008 A CN201911058008 A CN 201911058008A CN 110825508 A CN110825508 A CN 110825508A
Authority
CN
China
Prior art keywords
task
script file
git
script
execution
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
CN201911058008.2A
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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN201911058008.2A priority Critical patent/CN110825508A/en
Publication of CN110825508A publication Critical patent/CN110825508A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a task management method based on Git, which belongs to the technical field of operation and maintenance and mainly comprises the following steps: 1) uniformly storing and managing script files by a Git warehouse; 2) when the task is created and the operation task script is executed, the task needs to be checked. The workload is reduced, and the efficiency of operation and maintenance work is improved.

Description

Task management method based on Git
Technical Field
The invention relates to an operation and maintenance technology, in particular to a task management method based on Git.
Background
With the rapid development of economy, cloud services are more and more widely applied in life, and operation and maintenance work plays an irreplaceable role in guaranteeing the safe and stable operation of the cloud server. Each operation and maintenance person accumulates a large amount of running scripts in daily work. Because the script needs to be executed frequently at the server end in work to complete corresponding tasks, however, the script files are large in quantity, various in tasks and different in formats, are scattered in hands of different operation and maintenance personnel, unified management is difficult to perform, and parameter configuration is easy to make mistakes when the script files are executed. Therefore, a set of task management system is designed and developed, the script files are summarized and sorted, the correctness of the script files and the parameter configuration can be effectively supervised, the execution error rate of the script files can be greatly reduced, and the stable operation of the cloud server is effectively guaranteed.
The operation and maintenance task is realized by executing the script files, and each operation and maintenance person has a plurality of various script files in the actual operation and maintenance process. In the actual operation and maintenance work, the following disadvantages exist:
(1) the script file is directly executed in the server, and the correctness of the script file and the parameter configuration is not guaranteed;
(2) multiple persons can write the same script file, so that the working efficiency is low;
(3) the script file is stored in a personal hand and is easy to lose;
(4) the log file after the script is executed needs to be checked and saved manually, and the workload is increased.
Disclosure of Invention
In order to solve the technical problems, the invention provides a task management method based on Git, which can effectively manage project versions at high speed because Git is an open-source distributed version control system. Therefore, script files with various tasks and different formats are managed based on Git.
The technical scheme of the invention is as follows:
a task management method based on Git mainly comprises
(1) Uniformly storing and managing script files by a Git warehouse;
(2) when the task is created and the operation task script is executed, the task needs to be audited by managers, and the correctness of the task execution is ensured.
Further, in the above-mentioned case,
the method comprises the following specific steps:
(1) in the task management process, storing the script file into a Git warehouse for unified management;
(2) the method for managing the tasks based on the Git comprises the following specific steps:
the method comprises the following steps: creating a task, filling in task information, pushing the script file to a Git warehouse, and waiting for auditing;
step two: the manager checks the task information and the script file;
step three: configuring parameters of a task such as a route, an IP and the like,
if the task type is an operation type task such as updating, transferring, deleting and the like, the task can be executed only after being approved by a manager;
if the task is a query type task, the task can be directly executed;
step four: pulling the script file from Jenkins to a Git warehouse, and pushing the script file to a corresponding server to execute the script file according to configuration information;
step five: monitoring the task execution condition and returning an execution log in real time;
step six: and after the execution is finished, returning an execution result.
Further, in the above-mentioned case,
and the task creation is to create a new task in the task management system, fill in task information and push the script file to the Git warehouse, wherein the task is in a state to be audited.
Further, in the above-mentioned case,
and (4) auditing a creation task: and (5) auditing the script file:
(1) by this, the task state is changed to be executed;
(2) if not, the task returns to the creation/editing task node, and the script file is modified and the audit is resubmitted according to the modification suggestion.
Further, in the above-mentioned case,
and (3) executing tasks: firstly, routing and IP information are required to be configured, and then whether the task is an operation task or not is judged.
In a still further aspect of the present invention,
judging whether the task is an operation task:
(1) if yes, the manager is required to check whether the configuration information is correct;
if the script file is correct, calling Jenkins to pull a corresponding script file from a Git warehouse to execute a task;
if not, returning to the configuration information node, modifying the configuration information, and then resubmitting the audit;
(2) the query type task can directly execute the script file;
further, in the above-mentioned case,
and monitoring the execution process of the script file by Jenkins, and pushing the log to operation and maintenance personnel in real time.
The invention has the advantages that
The invention is a task management method based on Git, which uniformly manages the script files by Git, reduces the workload of operation and maintenance personnel for managing and maintaining the script files, realizes the sharing of the script files and improves the efficiency of operation and maintenance work.
Drawings
FIG. 1 is a schematic workflow diagram of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
The invention relates to a task management method based on Git, which mainly comprises the following steps:
(3) uniformly storing and managing script files by a Git warehouse;
(4) when the task is created and the operation task script is executed, the task needs to be audited by managers, and the correctness of the task execution is ensured.
The invention relates to a Git-based task management method, a task management work flow chart of which is shown as an attached figure 1 and mainly comprises the following steps:
1. and (3) creating a task: newly building a task in the task management system by operation and maintenance personnel, filling task information, and pushing a script file to a Git warehouse, wherein the task is in a state to be audited;
2. and (4) auditing a creation task: and (5) auditing the script file by a manager:
(1) by this, the task state is changed to be executed;
(2) if not, the task returns to the task creating/editing node, and the operation and maintenance personnel modify the script file according to the modification opinions and submit the review again;
3. and (3) executing tasks: firstly, operation and maintenance personnel are required to configure information such as routing, IP and the like, and then whether the task is an operation type (updating, deleting, modifying and the like) task is judged:
(1) if yes, the manager is required to check whether the configuration information is correct; if the script file is correct, calling Jenkins to pull a corresponding script file from a Git warehouse to execute a task; if not, returning to the configuration information node, modifying the configuration information by operation and maintenance personnel, and then re-submitting the audit;
(2) the query type task can directly execute the script file;
4. pushing the script file pulled from git to a corresponding server by Jenkins according to the configuration information, and executing the script file;
5. monitoring the execution process of the script file by Jenkins, and pushing a log to operation and maintenance personnel in real time;
6. and after the script execution is finished, returning an execution result to the operation and maintenance personnel.
The above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for managing tasks based on Git,
the method mainly comprises the following steps:
1) uniformly storing and managing script files by a Git warehouse;
2) when the task is created and the operation task script is executed, the task needs to be checked.
2. The method of claim 1,
and in the task management process, storing the script file into a Git warehouse for unified management.
3. The method of claim 2,
the method comprises the following specific steps:
the method comprises the following steps: creating a task, filling in task information, pushing the script file to a Git warehouse, and waiting for auditing;
step two: auditing the task information and the script file;
step three: configuring the routing and IP parameters of the task, and if the task type is an operation type task, executing the task after approval; if the task is a query type task, the task can be directly executed;
step four: pulling the script file from Jenkins to a Git warehouse, and pushing the script file to a corresponding server to execute the script file according to configuration information;
step five: monitoring the task execution condition and returning an execution log in real time;
step six: and after the execution is finished, returning an execution result.
4. The method of claim 2,
and the task creation is to create a new task in the task management system, fill in task information and push the script file to the Git warehouse, wherein the task is in a state to be audited.
5. The method of claim 2,
and (4) auditing a creation task: and (5) auditing the script file:
(1) by this, the task state is changed to be executed;
(2) if not, the task returns to the creation/editing task node, and the script file is modified and the audit is resubmitted according to the modification suggestion.
6. The method of claim 2,
and (3) executing tasks: firstly, routing and IP information are required to be configured, and then whether the task is an operation task or not is judged.
7. The method of claim 6,
judging whether the task is an operation task:
(1) if yes, the manager is required to check whether the configuration information is correct;
if the script file is correct, calling Jenkins to pull a corresponding script file from a Git warehouse to execute a task;
if not, returning to the configuration information node, modifying the configuration information, and then resubmitting the audit;
(2) the query type task can directly execute the script file.
8. The method of claim 2,
and monitoring the execution process of the script file by Jenkins, and pushing the log to operation and maintenance personnel in real time.
CN201911058008.2A 2019-11-01 2019-11-01 Task management method based on Git Pending CN110825508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911058008.2A CN110825508A (en) 2019-11-01 2019-11-01 Task management method based on Git

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911058008.2A CN110825508A (en) 2019-11-01 2019-11-01 Task management method based on Git

Publications (1)

Publication Number Publication Date
CN110825508A true CN110825508A (en) 2020-02-21

Family

ID=69552189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911058008.2A Pending CN110825508A (en) 2019-11-01 2019-11-01 Task management method based on Git

Country Status (1)

Country Link
CN (1) CN110825508A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN108073394A (en) * 2018-02-27 2018-05-25 西安闻泰电子科技有限公司 Code administration method, apparatus, code administration server and storage medium
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN110083587A (en) * 2019-04-16 2019-08-02 会找房(北京)网络技术有限公司 A kind of databases comparison measures and procedures for the examination and approval based on Git

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
CN108073394A (en) * 2018-02-27 2018-05-25 西安闻泰电子科技有限公司 Code administration method, apparatus, code administration server and storage medium
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN110083587A (en) * 2019-04-16 2019-08-02 会找房(北京)网络技术有限公司 A kind of databases comparison measures and procedures for the examination and approval based on Git

Similar Documents

Publication Publication Date Title
US11301136B2 (en) Capacity forecasting based on capacity policies and transactions
EP2079020B1 (en) System amd method for automating ETL applications
CN110764786A (en) Optimized deployment resource and software delivery platform in cloud computing environment
US20170193021A1 (en) Identifying patterns of a set of software applications
US11783254B2 (en) Method and system for implementing an adaptive data governance system
DE112020004623T5 (en) ML-BASED EVENT HANDLING
US8839249B2 (en) Customizing automated process management
CN116055283B (en) Multi-platform unified cloud management system supporting global tenant application resource quota setting
US9740994B2 (en) Simulation of supply chain plans using data model
US8321438B1 (en) Integration layer for a data repository
CN102567021A (en) Information operating maintenance management method
US20100106749A1 (en) Reorganizing table-based data objects
Radhakrishna et al. Automating ETL process with scripting technology
CN112015528B (en) Industrial control system software control flow construction and analysis method
CN110825508A (en) Task management method based on Git
WO2021249102A1 (en) Power grid multi-state graph closed-loop management method and system
KR20010110097A (en) Archiving in workflow-management-systems
US11836125B1 (en) Scalable database dependency monitoring and visualization system
CN116438528A (en) System and method for semantic model action set and replay in an analytics application environment
CN113726747A (en) Industrial Internet data access control system based on block chain
Krishna Mohan et al. Quality framework for reliability improvement in SAP netweaver business intelligence environment through lean software development––a practical perspective
CN112988705A (en) Data middlebox construction method for enterprise-level production
CN104572835A (en) Method and device for building process meta model
US20110246249A1 (en) Simulation of supply chain plans using web service
CN100550767C (en) The kinetic controlling equation method of the management information bank of internet network TV service

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221

RJ01 Rejection of invention patent application after publication