This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git


The following commit(s) were added to refs/heads/master by this push:
     new 93fcae0d0 readded schedule module
93fcae0d0 is described below

commit 93fcae0d0d7a1efd32f425dc971db9f4a25880c3
Author: Thomas Andraschko <tandrasc...@apache.org>
AuthorDate: Tue Oct 10 15:56:09 2023 +0200

    readded schedule module
---
 deltaspike/modules/pom.xml                                         | 2 --
 .../org/apache/deltaspike/scheduler/impl/AbstractJobAdapter.java   | 7 ++-----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/deltaspike/modules/pom.xml b/deltaspike/modules/pom.xml
index a5884e9d7..322586953 100644
--- a/deltaspike/modules/pom.xml
+++ b/deltaspike/modules/pom.xml
@@ -41,9 +41,7 @@
         <module>partial-bean</module>
         <module>jpa</module>
         <module>data</module>
-<!--
         <module>scheduler</module>
--->
         <module>test-control</module>
     </modules>
 </project>
diff --git 
a/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/AbstractJobAdapter.java
 
b/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/AbstractJobAdapter.java
index b4f6890f1..62ab7cd73 100644
--- 
a/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/AbstractJobAdapter.java
+++ 
b/deltaspike/modules/scheduler/impl/src/main/java/org/apache/deltaspike/scheduler/impl/AbstractJobAdapter.java
@@ -18,7 +18,6 @@
  */
 package org.apache.deltaspike.scheduler.impl;
 
-import 
org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent;
 import org.apache.deltaspike.core.api.provider.BeanProvider;
 import org.apache.deltaspike.core.util.ClassUtils;
 import org.apache.deltaspike.core.util.ProxyUtils;
@@ -29,6 +28,7 @@ import org.quartz.JobExecutionException;
 
 import jakarta.enterprise.inject.spi.BeanManager;
 import jakarta.inject.Inject;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 public abstract class AbstractJobAdapter<T> implements Job
@@ -60,10 +60,7 @@ public abstract class AbstractJobAdapter<T> implements Job
         }
         catch (Throwable t)
         {
-            //just in this case to reduce the implementation(s) of runnable 
(annotated with @Scheduled)
-            //to an absolute minimum.
-            //(custom implementations of org.quartz.Job need to do it on their 
own)
-            this.beanManager.fireEvent(new ExceptionToCatchEvent(t));
+            LOG.log(Level.SEVERE, "Error while executing job " + jobClass, t);
         }
     }
 

Reply via email to