spug/spug_api/apps/monitor/management/commands/runmonitor.py

14 lines
393 B
Python

# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
# Copyright: (c) <spug.dev@gmail.com>
# Released under the AGPL-3.0 License.
from django.core.management.base import BaseCommand
from apps.monitor.scheduler import Scheduler
class Command(BaseCommand):
help = 'Start monitor process'
def handle(self, *args, **options):
s = Scheduler()
s.run()