Skip to content

Commit 5d1941b

Browse files
authored
fix(CE): disable the database middle ware for temporal (#485)
1 parent 110a7c6 commit 5d1941b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

server/app/temporal/cli/worker

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ worker.register_workflow(Workflows::SyncWorkflow)
99
worker.register_workflow(Workflows::ScheduleSyncWorkflow)
1010
worker.register_workflow(Workflows::TerminateWorkflow)
1111

12-
worker.add_activity_middleware(Middlewares::DatabaseMiddleware)
12+
# worker.add_workflow_task_middleware(Middlewares::DatabaseMiddleware)
13+
# Disabled due to sync workflow failures in staging.
14+
# The middleware appears to be causing connection pooling issues, resulting in errors like:
15+
# "There is an issue connecting with your hostname: <hostname>. Please check your database configuration and
16+
# ensure there is a valid connection to your database."
17+
# Occasionally, the fetch sync activity also fails to retrieve the sync using the provided sync ID.
18+
# Further investigation is needed to understand the impact of DatabaseMiddleware on
19+
# database connections and workflow execution.
20+
1321
worker.register_activity(Activities::FetchSyncActivity)
1422
worker.register_activity(Activities::CreateSyncRunActivity)
1523
worker.register_activity(Activities::ExtractorActivity)

0 commit comments

Comments
 (0)