Skip to content

[BUG] The StartService task hangs forever when a dependency loop exists between services #5

@sisungo

Description

@sisungo

When a dependency loop exists between services, starting it will cause the tasks hang forever.

Minimal Example

The following service is named self.

[service]
type = "oneshot"
dependencies = ["self"]

[exec]
start = "ls"

Expected Behavior

The dependency loop is detected, automatically broken and a warning log is triggered.

Actual Behavior

The task hangs forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions