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

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de intersystems-community/sysadmin-api-specification

Todos los issues de intersystems-community/sysadmin-api-specification

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.