Skip to content

Add an is_running method #198

@mccalluc

Description

@mccalluc

Refinery has this logic right now, but we should support it on our side:

    def is_running(self):
        if self.is_workflow():
            return self.analysis.running()

        try:
            self.django_docker_client.lookup_container_url(
                self.container_name
            )
            return True
        except (ExpectedPortMissing, NotFound, NoPortsOpen):
            return False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions