kopia lustrzana https://github.com/bellingcat/auto-archiver
hotfix for #65
rodzic
22363cb8b9
commit
7a700acd8e
|
@ -240,6 +240,14 @@ class Archiver(ABC):
|
|||
except Exception as e:
|
||||
logger.error(f"WACZ generation failed: {e}")
|
||||
return
|
||||
try:
|
||||
# TODO: is there a better way to manage the containers, like reusing?
|
||||
# https://github.com/bellingcat/auto-archiver/issues/65
|
||||
cmd_clean_docker = 'docker rm $(docker stop $(docker ps -a -q --filter ancestor=webrecorder/browsertrix-crawler --format="{{.ID}}"))'
|
||||
logger.info(f"Cleaning docker containers: {cmd_clean_docker}")
|
||||
os.system(cmd_clean_docker)
|
||||
except Exception as e:
|
||||
logger.error(f"Could not clean dangling docker containers: {e}")
|
||||
|
||||
filename = os.path.join(browsertrix_home, "collections", collection, f"{collection}.wacz")
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue