Commit c814b6f9ddb404d3484e67bfa922ca33c4348418
1 parent
514b20f7
Exists in
dev
AgentX cleanup
Showing
1 changed file
with
1 additions
and
36 deletions
Show diff stats
src/agent/AgentX.py
1 | -# from __future__ import absolute_import | |
2 | - | |
3 | -import time | |
4 | -import datetime | |
5 | - | |
6 | -# from django.core.exceptions import ObjectDoesNotExist | |
7 | -# from django.db.models import Q | |
8 | -from django.shortcuts import get_object_or_404 | |
9 | -from django.conf import settings as djangosettings | |
10 | 1 | |
11 | 2 | import utils.Logger as L |
12 | 3 | |
13 | -""" | |
14 | -import observation_manager | |
15 | -import observation_manager.tasks | |
16 | -import scheduler | |
17 | -import scheduler.tasks as sched_task | |
18 | -import monitoring.tasks | |
19 | -import alert_manager.tasks | |
20 | -""" | |
21 | -# from common.models import * | |
22 | -from common.models import Config, Log, PlcDeviceStatus | |
23 | -from dashboard.views import get_sunelev | |
24 | -from devices.TelescopeRemoteControlDefault import TelescopeRemoteControlDefault | |
25 | - | |
26 | -""" | |
27 | -from devices.CameraNIR import NIRCameraController | |
28 | -from devices.CameraVIS import VISCameraController | |
29 | -from devices.Dome import DomeController | |
30 | -from devices.PLC import PLCController | |
31 | -from devices.Telescope import TelescopeController | |
32 | -from majordome.MajordomeDecorators import * | |
33 | -from utils.JDManipulator import * | |
34 | -""" | |
35 | - | |
36 | -from threading import Thread | |
37 | - | |
38 | 4 | from .Agent import Agent |
39 | 5 | |
40 | 6 | |
41 | -DEBUG_FILE = False | |
42 | -log = L.setupLogger("MajordomeTaskLogger", "Majordome") | |
7 | +log = L.setupLogger("AgentXTaskLogger", "AgentX") | |
43 | 8 | |
44 | 9 | """ |
45 | 10 | Task to handle the execution of the program | ... | ... |