Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-roboflow committed Jan 22, 2025
1 parent e03f261 commit 3500c66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion inference/core/interfaces/http/http_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,10 @@ async def infer_from_predefined_workflow(
if not workflow_request.workflow_id:
workflow_request.workflow_id = workflow_id
if not workflow_specification.get("id"):
logger.warning("Workflow ID not found in workflow specification")
logger.warning(
"Internal workflow ID missing in specification for '%s'",
workflow_id,
)
return process_workflow_inference_request(
workflow_request=workflow_request,
workflow_specification=workflow_specification,
Expand Down
5 changes: 4 additions & 1 deletion inference/core/workflows/execution_engine/v1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def run(
)
usage_workflow_id = self._internal_id
if self._workflow_id and not usage_workflow_id:
logger.warning("Workflow ID is set however internal Workflow ID is missing")
logger.debug(
"Workflow ID is set to '%s' however internal Workflow ID is missing",
self._workflow_id,
)
usage_workflow_id = self._workflow_id
result = run_workflow(
workflow=self._compiled_workflow,
Expand Down
2 changes: 1 addition & 1 deletion inference/usage_tracking/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def sync_wrapper(
usage_billable: bool = True,
**kwargs: P.kwargs,
) -> T:
#res = func(*args, **kwargs)
# res = func(*args, **kwargs)
self.record_usage(
**self._extract_usage_params_from_func_kwargs(
usage_fps=usage_fps,
Expand Down

0 comments on commit 3500c66

Please sign in to comment.