You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by "Arsnael (via GitHub)" <gi...@apache.org> on 2024/04/01 02:26:16 UTC

Re: [PR] JAMES-2586 Implement PostgresTaskExecutionDetailsProjection [james-project]

Arsnael commented on code in PR #2166:
URL: https://github.com/apache/james-project/pull/2166#discussion_r1545900849


##########
server/apps/postgres-app/src/main/java/org/apache/james/PostgresJamesServerMain.java:
##########
@@ -170,6 +184,17 @@ private static List<Module> chooseBlobStoreModules(PostgresJamesConfiguration co
         return builder.build();
     }
 
+    public static List<Module> chooseTaskManagerModules(PostgresJamesConfiguration configuration) {
+        switch (configuration.eventBusImpl()) {
+            case IN_MEMORY:
+                return List.of(new TaskManagerModule());
+            case RABBITMQ:
+                return List.of(new DistributedTaskManagerModule(), new DistributedTaskSerializationModule());

Review Comment:
   Maybe order? 
   
   I had a weird thing in mine too https://github.com/linagora/tmail-backend/pull/989 if I put JMAPEventBusModule in the rabbitmq bloc like here I was having injection issues but somehow in chooseJmapModule it was ok... Could not figure out why



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org