Skip to content

fix: PSv2 - Tasks are queued, worker sees job but no tasks #1123

Description

@mihow

Summary

When an async job is started, it appears that the tasks get queued, and the worker sees the job, but the worker sees zero tasks to complete.

Detailed Description

In Antenna, I start a job and it appears that all tasks are queued successfully:

[2026-02-08 02:17:04] INFO Initialized task state tracking for 15 images
[2026-02-08 02:17:04] INFO Queuing 15 images to NATS stream for job '2225'
[2026-02-08 02:17:04] INFO Shuffling images
[2026-02-08 02:17:04] INFO Found 15 out of 31 images to process

In the worker, the job is seen in the API, but there are zero tasks to complete.

2026-02-08 07:19:28 [info     ] Checking for jobs for pipeline quebec_vermont_moths_2023
2026-02-08 07:19:28 [info     ] Processing job 2225 with pipeline quebec_vermont_moths_2023
2026-02-08 07:19:28 [info     ] Worker 0/1 starting iteration for job 2225
2026-02-08 07:19:29 [info     ] Worker 0: No more tasks for job 2225
2026-02-08 07:19:29 [info     ] Worker 0: Iterator finished
2026-02-08 07:19:29 [info     ] Done, detections: 0. Detecting time: 0.0, classification time: 0.0, dl time: 0.0, save time: 0.0

How to Reproduce the Bug

It would be helpful to expose the NATS dashboard for the live environment.

Environment

https://antenna.insectai.org/projects/18/jobs/2225

Steps to reproduce the behavior:

  1. Start a job, wait for the tasks to be queues
  2. View the logs for the worker service on one of the GPU worker VMs

Screenshots

Image Image

Additional context

Add any other context about the problem here.

Activity

  1. added
    bugSomething isn't working
    on Feb 8, 2026
  2. changed the title [-]fix: PSv2 - Tasks are queued, worker sees job but not tasks[/-] [+]fix: PSv2 - Tasks are queued, worker sees job but no tasks[/+] on Feb 8, 2026
  3. added
    PSv2Async & distributed ML backend (PSv2): job state, NATS dispatch, result handling. Umbrella #515.
    on Jun 16, 2026
  4. mihow commented on Jun 27, 2026

    @mihow
    CollaboratorAuthor

    Claude says: Closing as not reproducible. This was filed in February 2026 against the earliest NATS implementation and predates the full hardening effort (resource warming, DLQ #1175, zombie-stream drain #1239, retry #1231, lifecycle visibility #1222 / #1238). There has been no recurrence, and PSv2 is now the platform default (#1353) running on that hardened path. Reopen with a job ID if the symptom returns.

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

Metadata

Metadata

Assignees

Labels

PSv2Async & distributed ML backend (PSv2): job state, NATS dispatch, result handling. Umbrella #515.bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions