Commit bc9717081f23bde14a5f4b22c3f92b507aeb9b4d
Exists in
dev
Merge and call Agend.CMD....
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
src/core/pyros_django/observation_manager/AgentImagesProcessor.py
... | ... | @@ -36,17 +36,18 @@ class AgentImagesProcessor(Agent): |
36 | 36 | |
37 | 37 | # TODO: Redefine valid timeout |
38 | 38 | AGENT_SPECIFIC_COMMANDS = [ |
39 | - ("do_create_test_images_1",60), | |
40 | - ("do_create_test_images_2",60), | |
41 | - ("do_stop_current_processing",60), | |
39 | + ("do_create_test_images_1",60, 0), # self.EXEC_MODE.SEQUENTIAL | |
40 | + ("do_create_test_images_2",60, 0), # self.EXEC_MODE.THREAD | |
41 | + ("do_stop_current_processing",60, 0), # self.EXEC_MODE.PROCESS | |
42 | 42 | ] |
43 | 43 | |
44 | 44 | # Scenario to be executed |
45 | 45 | # "self do_stop_current_processing" |
46 | 46 | # AgentCmd.CMD_STATUS_CODE.CMD_EXECUTED |
47 | 47 | TEST_COMMANDS_LIST = [ |
48 | - ("self do_create_test_images_1", 200, None, "CMD_EXECUTED"), | |
49 | - ("self do_exit", 500, "STOPPING", "CMD_EXECUTED"), | |
48 | + # Format : ("self cmd_name cmd_args", timeout, "expected_result", expected_status), | |
49 | + ("self do_create_test_images_1", 200, '', Agent.CMD_STATUS.CMD_EXECUTED), | |
50 | + ("self do_exit", 500, "STOPPING", Agent.CMD_STATUS.CMD_EXECUTED), | |
50 | 51 | ] |
51 | 52 | |
52 | 53 | ''' |
... | ... | @@ -209,6 +210,7 @@ class AgentImagesProcessor(Agent): |
209 | 210 | |
210 | 211 | # - Load file in memory |
211 | 212 | log.info("Load the file in memory") |
213 | + #self.set_infos("Load the file in memory") | |
212 | 214 | f = self._ima.genename(self._ima.load(fitsfile)) |
213 | 215 | # log.info(f"f={f}") |
214 | 216 | ... | ... |