metatron-discovery icon indicating copy to clipboard operation
metatron-discovery copied to clipboard

Not fail tasks by fail of pushing log file

Open navis opened this issue 3 years ago • 0 comments

It's too harsh to fail the task by failure of pushing log file.

      log.warn("Unable to create task log dir[%s]", directory.getAbsolutePath());
      File tempFile = File.createTempFile(taskid, ".log");
      Files.copy(file, tempFile);
      log.info("Wrote task log to temporary file: %s", tempFile);

navis avatar Jan 12 '22 00:01 navis