[autotest] Abort special tasks through AFE.
On View Host page, after checking the show special tasks checkbox,
the job table becomes a mixing of special tasks and regular jobs.
But only regular jobs are able to be aborted before.
I made the special tasks selectable as well and made the Abort action
apply to both regular and special tasks.
On the GWT side, the selected entries will be divided into special tasks
and regular jobs. Two rpc calls will be made separately to abort them.
BUG=chromium:290476
TEST=ran afe, abort regular jobs and special tasks separately and together
DEPLOY=afe,apache
Change-Id: I0a861552e67602a9f9a5f6ee096104b745e9fc5f
Reviewed-on: https://chromium-review.googlesource.com/206068
Tested-by: Jiaxi Luo <jiaxiluo@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Jiaxi Luo <jiaxiluo@chromium.org>
diff --git a/frontend/afe/rpc_utils.py b/frontend/afe/rpc_utils.py
index 4433836..6cb369b 100644
--- a/frontend/afe/rpc_utils.py
+++ b/frontend/afe/rpc_utils.py
@@ -644,7 +644,8 @@
execution_path=entry.execution_path(),
status=entry.status,
started_on=entry.started_on,
- id=str(entry.id) + type)
+ id=str(entry.id) + type,
+ oid=entry.id)
def _special_task_to_dict(special_task):