コード例 #1
0
def create_task(command_name, populated_command, ip, output_dir, workspace, task_id):
    db_task = (task_id, 1, command_name, populated_command, ip, output_dir, 'SUBMITTED', workspace)
    db.create_task(db_task)
コード例 #2
0
ファイル: tasks.py プロジェクト: xx-zhang/__celerystalk
def cel_create_task(*args, **kwargs):
    command_name, populated_command, ip, output_dir, workspace, task_id = args
    db_task = (task_id, 1, command_name, populated_command, ip, output_dir,
               'SUBMITTED', workspace)
    db.create_task(db_task)