GET /v2/tasks reports "Suspended": false for every task, including suspended ones

オープン
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
api, backend

調査の方向性

Start by reproducing the discrepancy with the documented GET /api/admin/v2/tasks and GET /api/admin/v2/task/info?id endpoints, using the suspend and resume calls described in the issue. Trace how TaskList exposes Suspended and compare it with %SYS.Task and task/info. Done means each list item reports the current boolean state, including after suspension and resumption.

索引モデルが issue の本文から書いたものです。

説明

Environment: intersystems/irishealth-community:2026.2, fresh container
(IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2026.2 (Build 221U) Fri Jun 26 2026),
calls made as _SYSTEM.

Summary: the Suspended field in GET /api/admin/v2/tasks is false for every task and never changes.
GET /api/admin/v2/task/info and %SYS.Task report the real state.

Steps to reproduce

Two tasks ship suspended on a fresh instance: Integrity Check (Id 4) and Automatic Table Statistic Collection (Id 21).

B=http://localhost:52773/api/admin
curl -u _SYSTEM:SYS "$B/v2/tasks"              # Id 4: "Suspended": false
curl -u _SYSTEM:SYS "$B/v2/task/info?id=4"     # "Suspended": true

# suspend a running task explicitly
curl -u _SYSTEM:SYS -X POST -H 'Content-Type: application/json' -d '{}' "$B/v2/task/suspend?id=3"   # 200
curl -u _SYSTEM:SYS "$B/v2/tasks"              # Id 3 (Purge Tasks): still "Suspended": false
curl -u _SYSTEM:SYS "$B/v2/task/info?id=3"     # "Suspended": true

##class(%SYS.Task).%OpenId(3).Suspended returns 1 after the suspend.

Expected: each TaskList item's Suspended (a boolean in the spec) matches the task's state, as task/info does.

Actual: false for all 18 tasks on a fresh instance, including Ids 4 and 21. After POST /v2/task/suspend
it stays false, both immediately and 5 seconds later. POST /v2/task/resume doesn't change it either.

Impact: a client that renders the task list shows every task as not suspended.
Workaround: call task/info for each task.

主要言語
言語のデータがありません
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

intersystems-community/sysadmin-api-specification のほかの issue

intersystems-community/sysadmin-api-specification の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。