Skip to content

Commit

Permalink
fix(CE): disable the database middle ware for temporal (#413)
Browse files Browse the repository at this point in the history
Co-authored-by: afthab vp <[email protected]>
  • Loading branch information
github-actions[bot] and afthabvp authored Oct 17, 2024
1 parent c31d176 commit 0996bcb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/app/temporal/cli/worker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ worker.register_workflow(Workflows::SyncWorkflow)
worker.register_workflow(Workflows::ScheduleSyncWorkflow)
worker.register_workflow(Workflows::TerminateWorkflow)

worker.add_activity_middleware(Middlewares::DatabaseMiddleware)
# worker.add_workflow_task_middleware(Middlewares::DatabaseMiddleware)
# Disabled due to sync workflow failures in staging.
# The middleware appears to be causing connection pooling issues, resulting in errors like:
# "There is an issue connecting with your hostname: <hostname>. Please check your database configuration and
# ensure there is a valid connection to your database."
# Occasionally, the fetch sync activity also fails to retrieve the sync using the provided sync ID.
# Further investigation is needed to understand the impact of DatabaseMiddleware on
# database connections and workflow execution.

worker.register_activity(Activities::FetchSyncActivity)
worker.register_activity(Activities::CreateSyncRunActivity)
worker.register_activity(Activities::ExtractorActivity)
Expand Down

0 comments on commit 0996bcb

Please sign in to comment.