Unlock instant, AI-driven research and patent intelligence for your innovation.

A PHP timed task management method and system

A timing task and management method technology, applied in the computer field, can solve problems such as high maintenance cost, insufficient configuration transparency, and does not support dependent scheduling, etc., to achieve the effect of solving high operation and maintenance costs, simply relying on scheduling, and reducing operation and maintenance costs

Active Publication Date: 2021-11-19
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Does not support dependent scheduling: linux crontab randomly starts tasks at the same time, that is, the start timing of tasks A and B started at the same time is random, and does not support task B after task A is executed, that is, it does not support Basic Dependency Scheduling Mechanism
[0005] 2. The configuration is not transparent enough: the linux crontab configuration is all in the configuration file of the linux server, which is generally managed by the operation and maintenance personnel, and the R&D personnel cannot directly and clearly know the configuration content
[0006] 3. High maintenance cost: Every time you add, modify, or delete a scheduled task, you need to modify the crontab configuration of the server. For cluster services, you need to modify the configuration files of all machines in the cluster, and the maintenance cost is obviously high.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A PHP timed task management method and system
  • A PHP timed task management method and system
  • A PHP timed task management method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] This solution does not completely abandon linux crontab, but uses crontab as a unified entry to execute the entry file of php, and then writes the execution cycle configuration and dependency configuration of each scheduled task in the comments of the php method, and uses the reflection mechanism of php to parse the comments , and then schedule in the php task entry file, the process will be described in detail below.

[0026] Such as figure 1 Shown is...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a PHP timed task management method and system, the method comprising: executing a PHP entry file according to a set time period; obtaining all PHP class files under the PHP entry file directory, and analyzing them by using a reflection mechanism An annotation of each PHP class file execution method; according to the annotation of the execution method, execute the PHP class file; after the execution of the PHP class file is completed, record the execution completion time of the PHP class file. This technical solution performs file execution control through file comment analysis, which greatly reduces the workload and operation and maintenance costs.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a PHP timing task management method and system. Background technique [0002] At present, most Internet companies use the native program command crontab of the linux operating system to manage the timing tasks in the English hypertext preprocessing language PHP (Hypertext Preprocessor) project. It is necessary to configure the execution command and execution cycle of each task in the linux crontab, relying on the linux system Scheduling to complete the execution of each timed task, the solution based on linux crontab has become the mainstream of PHP project timed task management. [0003] Although the solution based on linux crontab is the mainstream solution for timing task management of PHP projects, it has three obvious defects: [0004] 1. Does not support dependent scheduling: linux crontab randomly starts tasks at the same time, that is, the start timing of t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48G06F16/16
CPCG06F9/485G06F16/16
Inventor 唐俊彭冬
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO