Neil-YL commited on
Commit
6a03419
·
1 Parent(s): bf6834f

update pause input

Browse files
__pycache__/maintenance_flow.cpython-310.pyc CHANGED
Binary files a/__pycache__/maintenance_flow.cpython-310.pyc and b/__pycache__/maintenance_flow.cpython-310.pyc differ
 
maintenance_flow.py CHANGED
@@ -18,22 +18,23 @@ def request_wells_maintenance(maintenance_type):
18
  message += f"\n\nOT2-LCM requests a {maintenance_type}, please open the <{flow_run_url}|paused flow run>, complete with your user name and then click 'Resume'"
19
  slack_block.notify(message)
20
 
21
- user = pause_flow_run(
22
- wait_for_input=(
23
- f"Please complete the {maintenance_type}.\n"
24
- "After you have replaced the wellplate, "
25
- "please input your name:"
26
- ),
27
- timeout=300,
28
  )
 
29
 
30
  set_maintenance_status(maintenance_type,0)
31
 
32
  if maintenance_type == "wellplate_maintenance":
33
  generate_empty_well()
34
- msg_out = f"Updating wells status on DB by {user}"
35
  logger.info(msg_out)
36
 
37
- insert_maintenance_log(maintenance_type, user)
38
 
39
  return msg_out
 
18
  message += f"\n\nOT2-LCM requests a {maintenance_type}, please open the <{flow_run_url}|paused flow run>, complete with your user name and then click 'Resume'"
19
  slack_block.notify(message)
20
 
21
+ user_input = pause_flow_run(
22
+ wait_for_input=str,
23
+ timeout=300,
24
+ message=(
25
+ f"Please complete the {maintenance_type}.\n"
26
+ "After you have replaced the wellplate, "
27
+ "please input your name:"
28
  )
29
+ )
30
 
31
  set_maintenance_status(maintenance_type,0)
32
 
33
  if maintenance_type == "wellplate_maintenance":
34
  generate_empty_well()
35
+ msg_out = f"Updating wells status on DB by {user_input}"
36
  logger.info(msg_out)
37
 
38
+ insert_maintenance_log(maintenance_type, user_input)
39
 
40
  return msg_out