Skip to content

Commit 22992ab

Browse files
committed
queue filter in sql
1 parent e34fa9d commit 22992ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

dbos/workflow.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ func WithQueueName(queueName string) ListWorkflowsOption {
19061906
}
19071907
}
19081908

1909-
// WithQueuesOnly filters to only return workflows that are in a queue.
1909+
// WithQueuesOnly filters to only return workflows that are in a queue (queue_name is not NULL).
19101910
//
19111911
// Example:
19121912
//
@@ -1987,11 +1987,6 @@ func (c *dbosContext) ListWorkflows(_ DBOSContext, opts ...ListWorkflowsOption)
19871987
opt(params)
19881988
}
19891989

1990-
// If we are asked to retrieve only queue workflows with no status, only fetch ENQUEUED and PENDING tasks
1991-
if params.queuesOnly && len(params.status) == 0 {
1992-
params.status = []WorkflowStatusType{WorkflowStatusEnqueued, WorkflowStatusPending}
1993-
}
1994-
19951990
// Convert to system database input structure
19961991
dbInput := listWorkflowsDBInput{
19971992
workflowIDs: params.workflowIDs,

0 commit comments

Comments
 (0)