Skip to content

NamedLock unable to clear locks under docker. #128

@bsutton

Description

@bsutton

When using NamedLock in docker, if a dcli app crashes it can leave a stale namedlock.

The named lock logic uses the processes pid to determine if a lock is not stale.

In docker an app will always get the same pid id (1) so it will always look like it is use.

Consider using the processes start time. to help identify the pid is the one we thought it is.

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