@@ -196,6 +196,8 @@ kj::Promise<void> Execution::getResult(GetResultContext context) {
196196 const util::SHA256_t& hash) {
197197 frontend_context_.file_info_ [id].hash = hash;
198198 if (!result.getStatus ().isSuccess ()) {
199+ KJ_LOG (INFO, " Marking file as failed" , id,
200+ description_);
199201 frontend_context_.file_info_ [id]
200202 .promise .fulfiller ->reject (
201203 KJ_EXCEPTION (FAILED, " Dependency failed" ));
@@ -242,6 +244,7 @@ kj::Promise<void> Execution::getResult(GetResultContext context) {
242244 .fulfiller ->reject (KJ_EXCEPTION (
243245 FAILED, " Execution stalled!" ));
244246 } else {
247+ KJ_LOG (INFO, " Finished execution" , description_);
245248 finish_promise_.fulfiller ->fulfill ();
246249 }
247250 })
@@ -254,7 +257,9 @@ kj::Promise<void> Execution::getResult(GetResultContext context) {
254257 .eagerlyEvaluate (nullptr );
255258 },
256259 [this ](kj::Exception exc) {
260+ KJ_LOG (INFO, " Marking execution as failed" , description_);
257261 for (auto f : outputs_) {
262+ KJ_LOG (INFO, " Marking as failed" , f.first , f.second );
258263 auto & ff =
259264 frontend_context_.file_info_ [f.second ].promise .fulfiller ;
260265 if (ff) ff->reject (KJ_EXCEPTION (FAILED, " Dependency failed" ));
@@ -292,13 +297,13 @@ kj::Promise<void> FrontendContext::startEvaluation(
292297 util::File::MaybeGet (file.second .hash ,
293298 context.getParams ().getSender ())
294299 .then (
295- [id = file.first ,
300+ [this , id = file.first ,
296301 fulfiller =
297302 std::move (file.second .promise .fulfiller )]() mutable {
298303 KJ_LOG (INFO, " Received file with id " + std::to_string (id));
299304 fulfiller->fulfill ();
300305 },
301- [fulfiller = ff](kj::Exception exc) {
306+ [this , fulfiller = ff](kj::Exception exc) {
302307 fulfiller->reject (kj::cp (exc));
303308 return exc;
304309 })
0 commit comments