Skip to content

The hub's summary counts a running job as ready #575

Closed

Description

@7schmiede

What happens

Since #544 a job (kind = "job") is running while it runs. The hub's summary (crates/devstack-hub/src/notify/rules.rs, Scope::glance) counts a running service as ready, so a stack whose migration job still runs shows as ready on the start page and in its notifications. starting is no longer set for a job, so nothing there says it is still coming up.

Expected

A running job counts as starting, as the daemon's own checks do (start_and_wait, ensure_after, a command's requires, and since #573 a lane's start on a node). The summary needs the service's kind for that: service events carry no kind, so it would come from the snapshot.

Found in a code review before 0.49.4 (sibling of #573).

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions