jumpserver/apps/ops/tasks.py

14 lines
212 B
Python
Raw Normal View History

2017-03-09 06:55:33 +00:00
# coding: utf-8
from celery import shared_task
2017-12-10 16:29:25 +00:00
from .utils import run_adhoc
2017-03-09 06:55:33 +00:00
2017-12-10 16:29:25 +00:00
def rerun_task():
pass
2017-03-09 06:55:33 +00:00
@shared_task
2017-12-10 16:29:25 +00:00
def run_add_hoc_and_record_async(adhoc, **options):
return run_adhoc(adhoc, **options)