From 4dc48d3a2ed1531d9408b5531c2b1d7afa628cf4 Mon Sep 17 00:00:00 2001 From: KyleKlenk <kyle.c.klenk@gmail.com> Date: Tue, 5 Sep 2023 13:45:36 -0600 Subject: [PATCH] Cleaned up Job actor error handling --- build/source/actors/job_actor/job_actor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/source/actors/job_actor/job_actor.cpp b/build/source/actors/job_actor/job_actor.cpp index 4fa5583..d62b228 100644 --- a/build/source/actors/job_actor/job_actor.cpp +++ b/build/source/actors/job_actor/job_actor.cpp @@ -243,7 +243,10 @@ behavior job_actor(stateful_actor<job_state>* self, break; case type_id_v<file_access_error>: - aout(self) << "File Access Error: " << to_string(err) << "No Hanlding Implemented\n"; + aout(self) << "File Access Error: " << to_string(err) << "No Handling Implemented\n"; + for (auto GRU : self->state.gru_container.gru_list) { + self->send_exit(GRU->getGRUActor(), exit_reason::user_shutdown); + } self->quit(); break; default: -- GitLab