Skip to content

Commit

Permalink
keep it async to match before
Browse files Browse the repository at this point in the history
  • Loading branch information
swheaton committed Nov 22, 2024
1 parent 632f140 commit d621680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fiftyone/operators/delegated.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ async def _execute_operator(self, doc):
ctx.request_params["target"] = "outputs"
ctx.request_params["results"] = result

outputs = resolve_type_with_context(operator, ctx)
outputs = await resolve_type_with_context(operator, ctx)
if outputs is not None:
outputs_schema = outputs.to_json()
except (AttributeError, Exception):
Expand Down
4 changes: 2 additions & 2 deletions fiftyone/operators/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ async def resolve_type(registry, operator_uri, request_params):
)
await ctx.resolve_secret_values(operator._plugin_secrets)

return resolve_type_with_context(operator, ctx)
return await resolve_type_with_context(operator, ctx)


def resolve_type_with_context(operator, context):
async def resolve_type_with_context(operator, context):
"""Resolves the "inputs" or "outputs" schema of an operator with the given context.
Args:
operator: the :class:`fiftyone.operators.Operator`
Expand Down

0 comments on commit d621680

Please sign in to comment.