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)
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)