@Override public void execute(JobContext context) { try (Session s = sessionFactory.create(new ByteArrayInputStream(new byte[0]), session.getConsole(), session.getConsole(), session)) { script.execute(s, Collections.singletonList(context)); } catch (Exception e) { LOGGER.warn("Error executing script", e); } }
@Override public void execute(JobContext context) { try (Session s = sessionFactory.create(new ByteArrayInputStream(new byte[0]), session.getConsole(), session.getConsole(), session)) { script.execute(s, Collections.singletonList(context)); } catch (Exception e) { LOGGER.warn("Error executing script", e); } }