script_task.py 368 B

123456789101112131415161718
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. import time
  5. from tasks.base_task import BaseTask
  6. from module.logger import logger
  7. class ScriptTask(BaseTask):
  8. def run(self) -> bool:
  9. """
  10. 运行脚本
  11. :return:
  12. """
  13. time.sleep(10)
  14. logger.info("运行脚本")