We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88ff3dd commit e6e78ceCopy full SHA for e6e78ce
tensorflow_serving/core/loader_harness.cc
@@ -91,8 +91,13 @@ Status LoaderHarness::Load() {
91
// Servable is going to be unloaded very soon, we report a failure here so
92
// that we do not accidentally report that the servable is available.
93
TF_RETURN_IF_ERROR(UnloadDueToCancelledLoad());
94
- return errors::Cancelled(
95
- strings::StrCat("Loading of servable cancelled"));
+ absl::Status s =
+ errors::Cancelled(strings::StrCat("Loading of servable cancelled"));
96
+ if (options_.error_callback) {
97
+ // Invokes BasicManager::PublishOnEventBus(kEnd).
98
+ options_.error_callback(id_, s);
99
+ }
100
+ return s;
101
}
102
{
103
mutex_lock l(mu_);
0 commit comments