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 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 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 |
|