184 files
This commit is contained in:
1 parent
7b47edbf8d
commit
0c64e47969
184 files changed
+9608
-11572
No files matched your search
@@ -313,11 +313,16 @@ async def ws_skip_task(
|
||||
return
|
||||
rd, _entry = ctx
|
||||
|
||||
await rd.coordinator.skip_maintenance(
|
||||
task_id=msg["task_id"],
|
||||
reason=msg.get("reason"),
|
||||
as_missed=msg.get("as_missed", False),
|
||||
)
|
||||
try:
|
||||
await rd.coordinator.skip_maintenance(
|
||||
task_id=msg["task_id"],
|
||||
reason=msg.get("reason"),
|
||||
as_missed=msg.get("as_missed", False),
|
||||
)
|
||||
except ServiceValidationError as err:
|
||||
# #150: the task carries a skip lock.
|
||||
connection.send_error(msg["id"], "skip_disabled", str(err))
|
||||
return
|
||||
connection.send_result(msg["id"], {"success": True})
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user