Skip to content

Commit

Permalink
Improve streams pod archives path deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Dec 18, 2024
1 parent 09fa0a5 commit b67978b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haupt/haupt/streams/endpoints/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Dict, List, Optional, Union

from clipped.utils.bools import to_bool
from clipped.utils.paths import delete_path
from clipped.utils.paths import delete_old_files
from rest_framework import status

from django.core.handlers.asgi import ASGIRequest
Expand Down Expand Up @@ -55,9 +55,9 @@ async def collect_agent_data(

# Cleanup archives
if store_path != settings.AGENT_CONFIG.local_root:
delete_path(settings.AGENT_CONFIG.local_root)
delete_old_files(settings.AGENT_CONFIG.local_root)
if store_path != settings.CLIENT_CONFIG.archives_root:
delete_path(settings.CLIENT_CONFIG.archives_root)
delete_old_files(settings.CLIENT_CONFIG.archives_root)

# Collect agent data
async def collect_and_archive_agent_services_logs(pods: List[V1Pod]):
Expand Down

0 comments on commit b67978b

Please sign in to comment.