MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / execute_startup_services

Function execute_startup_services

script/execute_commands.py:52–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 print(f"Error executing task {task_id}: {e}")
51
52def execute_startup_services():
53 get = public.dict_obj()
54 p = crontab.crontab()
55 crontab_data = get_crontab_data() # 获取crontab数据
56 for task in crontab_data:
57 if task['sType'] == 'startup_services': # 检查任务类型
58 get.id=task['id']
59 # 直接调用StartTask函数执行任务
60 p.StartTask(get)
61
62# 执行示例
63execute_startup_services()

Callers 1

Calls 3

get_crontab_dataFunction · 0.85
crontabMethod · 0.80
StartTaskMethod · 0.80

Tested by

no test coverage detected