Timed tasks are always encountered in daily development requirements. We often have some simple script work that we hope can be executed once an hour or every day. When such requirements become more numerous, these scattered task scripts will become difficult to manage. Especially when they may be written in different script languages, we need a centralized timed task management platform for unified management.
Support dark mode, support mobile terminal operation, use QinLong, recommend Docker or Docker-Composite deployment, use Docker deployment: Docker run – it\ -v $PWD/ql/config:/ql/config \ -v 。
$PWD/ql/log:/ql/log \ -v $PWD/ql/db:/ql/db \ -v $PWD/ql/repo:/ql/repo \ -v $PWD/ql/raw:/ql/raw \ -v
$PWD/ql/scripts:/ql/scripts \ -p 5700:5700 \ –name qinglong \ –hostname qinglong \ –restart unless-stopped \ whyour/qinglong:latest
Deploy using Docker-Compose: mkdir qinglong wget https://raw.githubusercontent.com/whyour/qinglong/master/docker-compose.yml
#Start docker-compose up -d #Stop Docker-compose downQinLong provides rich commands for control, including: # Update and restart Qinglong qlupdate
#Run the custom script extra.shqlextra # Add a single script file qlraw
#Add the specified script of a single warehouse qlrepo # Delete the old log qlrmlog
#Start tg-botqlbot # to detect Qinglong environment and repair qlcheck
#Reset the number of login errors qlresetlet # Disable two-step login qlresettfa
#Execute in sequence. If the random delay is set, the random delay of a certain number of seconds task # will be executed in sequence. Whether the random delay is set or not, it will run immediately. The foreground will output the day and record it in the log file
Task now # Concurrent execution, regardless of whether the random delay is set, will run immediately. The foreground does not produce a birthday, which is directly recorded in the log file, and can be executed by specifying an account
Task conc (optional) # Specify the account to execute, and immediately run task desi regardless of whether random delay is set
The parameters of the command include: file_ Url: script address repo_ Url: warehouse address whitelist: the whitelist when pulling the warehouse, that is, the string contained in the path of the script to be pulled blacklist: the blacklist when pulling the warehouse, that is, the string not contained in the path of the script to be pulled
Dependency: The dependent files required by the pull warehouse will be directly copied from the warehouse to the warehouse directory under the scripts, and will not be affected by the blacklist branch: pull the branch days of the warehouse: the number of days to keep the log file_ Path: The file path when the task is executed
env_ Name: The name of the environment variable that needs to be concurrent or specified during task execution account_ Number: When executing a task, specify the account number to be executed for an environment variable. QinLong provides a GUI background interface, which can easily and visually manage task execution.