From 62ccf1ea2c080687e9e30aa403074cdf51d62d59 Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Tue, 3 Dec 2024 23:23:02 -0300 Subject: [PATCH] change the directory --- agent/worker/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/worker/agent.py b/agent/worker/agent.py index 7a3c727..6ca1201 100644 --- a/agent/worker/agent.py +++ b/agent/worker/agent.py @@ -754,7 +754,7 @@ def task_clear_apps_data(self): self.logger.info( "Background task finished: Agent data has been cleared successfully" ) - tmp_dir = constants.SUPERVISELY_AGENT_FILES_CONTAINER() + "_to_remove" + tmp_dir = constants.SUPERVISELY_SYNCED_APP_DATA_CONTAINER() + "_to_remove" if os.path.exists(tmp_dir): self.logger.info( "Start background task: Clearing apps data [_to_remove directory detected]" @@ -770,8 +770,8 @@ def task_clear_apps_data(self): elif constants.SHOULD_CLEAN_APPS_DATA(): self.logger.info("Start background task: Clearing apps data") try: - shutil.move(constants.SUPERVISELY_AGENT_FILES_CONTAINER(), tmp_dir) - os.makedirs(constants.SUPERVISELY_AGENT_FILES_CONTAINER()) + shutil.move(constants.SUPERVISELY_SYNCED_APP_DATA_CONTAINER(), tmp_dir) + os.makedirs(constants.SUPERVISELY_SYNCED_APP_DATA_CONTAINER()) shutil.rmtree(tmp_dir) except: self.logger.warn("Background task error: Failed to clear apps data", exc_info=True)