Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 reduce noisy logs in director-v2 #5300

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,31 @@ async def service_remove_containers(
scheduler_data.endpoint, progress_callback=progress_callback
)
except (BaseHttpClientError, TaskClientResultError) as e:
_logger.warning(
_logger.info(
(
"Could not remove service containers for "
"%s\n%s. Will continue to save the data from the service!"
"Could not remove service containers for %s. "
"Will continue to save the data from the service! Error: %s"
),
scheduler_data.service_name,
f"{e}",
f"{type(e)}: {e}",
)


async def service_free_reserved_disk_space(
app: FastAPI, node_id: NodeID, sidecars_client: SidecarsClient
) -> None:
scheduler_data: SchedulerData = _get_scheduler_data(app, node_id)
await sidecars_client.free_reserved_disk_space(scheduler_data.endpoint)
try:
await sidecars_client.free_reserved_disk_space(scheduler_data.endpoint)
except BaseHttpClientError as e:
_logger.info(
(
"Could not remove service containers for %s. "
"Will continue to save the data from the service! Error: %s"
),
scheduler_data.service_name,
f"{type(e)}: {e}",
)


async def service_save_state(
Expand Down
Loading