Skip to content
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
6 changes: 6 additions & 0 deletions pkg/cortex/serve/cortex_internal/lib/api/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,9 @@ def validate_predictor_with_grpc(impl, api_spec):
f'invalid signature for method "predict"',
f'{util.string_plural_with_s("argument", len(disallowed_params))} {util.and_list_with_quotes(disallowed_params)} cannot be used when the grpc protocol is enabled',
)

if getattr(impl, "post_predict", None):
raise UserException(
f"class {target_class_name}",
f"post_predict method is not supported when the grpc protocol is enabled",
)