refinery-platform / django_docker_engine

Django app that manages the creation of, and proxies requests to, Docker containers.
MIT License
6 stars 2 forks source link

purge "purge"? #202

Open mccalluc opened 6 years ago

mccalluc commented 6 years ago

It was used for the old container management, but it's been replaced by LRU. Confirm that Refinery doesn't need it before removing.

For example, tasks.py:

@task()
def django_docker_cleanup():
    # TODO: Specify manager, if not default
    DockerClientWrapper().purge_inactive(
        settings.DJANGO_DOCKER_ENGINE_SECONDS_INACTIVE
    )

@jkmarx and @scottx611x : Opinions?