Skip to content

Commit

Permalink
uuid container name
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Oct 13, 2023
1 parent 44f9fff commit 70fe9a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rest/clients/local_docker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pathlib import Path
import docker
import uuid

from ..core.logger import logger
from ..models.sorting import (
Expand Down Expand Up @@ -65,7 +66,7 @@ def run_sorting(
}

container = self.client.containers.run(
name=f'si-sorting-run-{run_kwargs.run_identifier}',
name=f'si-sorting-run-{run_kwargs.run_identifier}-{uuid.uuid4().hex[:6]}',
image=map_sorter_to_image[sorter_kwargs.sorter_name],
command=['python', 'main.py'],
detach=True,
Expand Down

0 comments on commit 70fe9a8

Please sign in to comment.