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

change pause description

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,15 +18,16 @@ 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_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
 
 
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
+ description_md = f"""
22
+ **OT2-LCM requests a {maintenance_type}!**
23
+ Please finish the maintenance and enter your name:
24
+ """
25
+
26
+ user_input = await pause_flow_run(
27
+ wait_for_input=UserInput.with_initial_data(
28
+ description=description_md, name=" "
29
+ ),timeout = 300
30
+ )
31
 
32
  set_maintenance_status(maintenance_type,0)
33