fix: corrected from comment from pr
continuous-integration/drone/push Build is failing Details

pull/21/head
dettlaff 2023-11-12 01:16:04 +04:00
parent 9114bc6ae0
commit d31ad487eb
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import re
import subprocess
from subprocess import Popen, PIPE
from typing import Tuple, Iterable, IO, Any, Optional
from selfprivacy_api.utils.huey import huey
@ -9,9 +8,9 @@ from selfprivacy_api.jobs import JobStatus, Jobs, Job
COMPLETED_WITH_ERROR = (
"We are sorry, сompleted with an error, report it to support chat"
"We are sorry, сompleted with an error, report it to support chat."
)
RESULT_WAS_NOT_FOUND_ERROR = "We are sorry, garbage collection result was not found, something went wrong, report it to support chat :("
RESULT_WAS_NOT_FOUND_ERROR = "We are sorry, garbage collection result was not found, something went wrong, report it to support chat."
CLEAR_COMPLETED = "Cleaning completed."
@ -25,6 +24,7 @@ def run_nix_store_print_dead() -> IO[Any]:
"utf-8"
)
def run_nix_collect_garbage() -> Optional[IO[bytes]]:
return subprocess.Popen(
["nix-store", "--gc"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT