Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase rabbitmq consumer timeout #1296

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/msgqueue/rabbitmq/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (t *MessageQueueImpl) initQueue(sub session, q msgqueue.Queue) (string, err
if q.DLX() != "" {
args["x-dead-letter-exchange"] = ""
args["x-dead-letter-routing-key"] = q.DLX()
args["x-consumer-timeout"] = 5000 // 5 seconds
args["x-consumer-timeout"] = 300000 // 5 minutes

dlqArgs := make(amqp.Table)

Expand Down
2 changes: 1 addition & 1 deletion internal/services/controllers/workflows/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func New(fs ...WorkflowsControllerOpt) (*WorkflowsControllerImpl, error) {

w.processWorkflowEventsOps = queueutils.NewOperationPool(w.l, time.Second*5, "process workflow events", w.processWorkflowEvents)
w.unpausedWorkflowRunsOps = queueutils.NewOperationPool(w.l, time.Second*5, "unpause workflow runs", w.unpauseWorkflowRuns)
w.bumpQueueOps = queueutils.NewOperationPool(w.l, time.Second*5, "bump queue", w.runPollActiveQueuesTenant)
w.bumpQueueOps = queueutils.NewOperationPool(w.l, time.Second*60, "bump queue", w.runPollActiveQueuesTenant)

return w, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/repository/prisma/workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ func (w *workflowRunEngineRepository) PopWorkflowRunsCancelNewest(ctx context.Co

func (w *workflowRunEngineRepository) PopWorkflowRunsRoundRobin(ctx context.Context, tenantId string, workflowVersionId string, maxRuns int) ([]*dbsqlc.WorkflowRun, []*dbsqlc.GetStepRunForEngineRow, error) {

tx, commit, rollback, err := sqlchelpers.PrepareTx(ctx, w.pool, w.l, 5000)
tx, commit, rollback, err := sqlchelpers.PrepareTx(ctx, w.pool, w.l, 30000)

if err != nil {
return nil, nil, err
Expand Down
Loading