Skip to content

up --workers does not enable workers when the lane runs on a pool node #314

Closed

Description

@fen89

What happened

devstack up --workers in a worktree whose lane runs on a pool node does not enable the service's background workers. The same command with --on local does.

The stack file gates a background worker by the {is_main} placeholder, as the docs suggest:

[services.api.workers]
env = { Jobs__Runner__Enabled = "{is_main}", Queue__ConsumerEnabled = "{is_main}" }

Started on the pool, the variables stay false whatever I do:

  1. devstack up (lane placed on a pool node), then devstack up --workers: no restart, still false (expected, the lane was running).

  2. devstack restart api: still false.

  3. devstack lane stop <lane>, then devstack up --workers: the lane is placed on the same pool node again (remote_lane_placed … why="keeps this lane's data (mirror, builds, volumes)"), the service restarts, and devstack env api still shows

    Jobs__Runner__Enabled                     = false    # devstack
    

    The service log confirms it ("runner disabled … this instance takes no jobs"), and no worker registers with the job server of the lane.

  4. devstack lane stop <lane>, then devstack up --workers --on local: devstack env api shows = true, the worker registers within seconds, jobs run.

Expected

--workers enables the lane's background workers wherever the lane runs, or, if that is not supported on a pool node, devstack up --workers says so instead of starting the lane without them.

Notes

  • Nothing in devstack status, devstack lane list or the daemon log mentions workers for the pool run; the daemon log shows the POST /v1/lanes/<lane>/v1/up and the usual remote_lane_* phases, nothing about the flag. From the outside the lane looks healthy, and a job triggered in it just stays queued.
  • A lane that is moved back to the pool keeps its data there (keeps this lane's data), so the same node is chosen each time; I could not tell whether the node or the pool path in general is the cause.

Environment

  • devstack 0.25.0 (latest per devstack doctor)
  • Windows 11 (local), lane on a pool node
  • Docker 29.7.2, Compose 5.5.1
  • Stack: a .NET API with an in-process job runner (the worker), a migrator job, an SPA, infrastructure from two Compose groups (one of them holds the job server)
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions