Skip to content

🐛 Bug Report: GET /v1/health/queue/failed/:name rejects the v1-executions and v1-jobs queues #14632

Closed as not planned

Description

@555aaditya

👟 Reproduction steps

  1. On a self-hosted instance (main @ ad2e97e), call GET /v1/health/queue/failed/v1-executions with an API key that has health.read.
  2. Do the same for GET /v1/health/queue/failed/v1-jobs.

👍 Expected behavior

Both return the failed-job count, as they do for the other 14 worker queues. Both queues have dedicated workers (app/config/workers.php:47 jobs, :62 executions) and publishers (app/init/resources.php:213, :291).

👎 Actual Behavior

Both return 400. The name param's WhiteList in src/Appwrite/Platform/Modules/Health/Http/Health/Queue/Failed/Get.php:44-58 doesn't list Event::EXECUTIONS_QUEUE_NAME or Event::JOBS_QUEUE_NAME, and the publisher map at lines 101-114 has no entry for them. As a result, operators can't monitor failed function executions or failed manual-upload build jobs.

The two queues were added after the whitelist (executions in b432918, jobs in d1b1ab9). The notifications queue was added to the whitelist when it shipped (62b0314).

Proposed fix: add both queue names (with their _APP_EXECUTIONS_QUEUE_NAME / _APP_JOBS_QUEUE_NAME env overrides) to the whitelist and the publisher map. Add an e2e case in tests/e2e/Services/Health. This adds two values to the HealthQueueName SDK enum.

🎲 Appwrite version

main (ad2e97e); 2.5.x

💻 Operating system

Linux

🧱 Your Environment

Self-hosted, default docker-compose.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

  • I have read the Code of Conduct

Activity

  1. 555aaditya commented on Oct 18, 2026

    @555aaditya
    Author

    I'd like to fix this: add both queues to the whitelist and the publisher map, with an e2e case in tests/e2e/Services/Health. Could I be assigned?

  2. added
    product / functions
    product / messaging
    product / self-hosted
    on Oct 18, 2026
  3. 555aaditya commented on Oct 18, 2026

    @555aaditya
    Author

    Thanks @ChiragAgg5k! As you mentioned on Discord, the Health service is planned for removal and isn't actively used anymore, so I'm closing this as not planned. Happy to pick up something else instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / functionsproduct / messagingproduct / self-hosted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions