Skip to content

Commit

Permalink
feat: start worker on low_priority queue on shopware v6.5.7 and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
pkramme authored and shyim committed Jun 7, 2024
1 parent f9d8be4 commit fdc15a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/project/project_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ var projectWorkerCmd = &cobra.Command{
consumeArgs := []string{"messenger:consume", fmt.Sprintf("--memory-limit=%s", memoryLimit), fmt.Sprintf("--time-limit=%s", timeLimit)}

if queuesToConsume == "" {
if is, _ := shop.IsShopwareVersion(projectRoot, ">=6.5"); is {
if is, _ := shop.IsShopwareVersion(projectRoot, ">=6.5.7"); is {
consumeArgs = append(consumeArgs, "async", "failed", "low_priority")
} else if is, _ := shop.IsShopwareVersion(projectRoot, ">=6.5"); is {
consumeArgs = append(consumeArgs, "async", "failed")
}
} else {
Expand Down

0 comments on commit fdc15a2

Please sign in to comment.