You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands.md
+16
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ Allows you to consume jobs from a specific queue.
63
63
*`-priority` - The priority for the jobs from the queue (comma separated). If not provided explicit, will follow the priorities defined in the config via `$queuePriorities` for the given queue. Disabled by default.
64
64
*`-tries` - The number of attempts after which the job will be considered as failed. Overrides settings from the Job class. Disabled by default.
65
65
*`-retry-after` - The number of seconds after which the job is to be restarted in case of failure. Overrides settings from the Job class. Disabled by default.
66
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`. Use namespace to define an alternative, e.g. `Acme\\Config\\Queue`.
66
67
*`--stop-when-empty` - Stop when the queue is empty.
67
68
68
69
##### Example
@@ -75,6 +76,10 @@ It will listen for 5 jobs from the `emails` queue and then stop.
75
76
76
77
It will work the same as the previous command but will first consume jobs from the `emails` queue that were added with the `low` priority.
This is how we would use an alternative config file. However, usually, you will not need to specify it. It's recommended to use only a single config file across your application, **but** if you are building a modular system, you can use [Registrars](https://codeigniter.com/user_guide/general/configuration.html#registrars) to update the queue config file from within your module.
82
+
78
83
### queue:stop
79
84
80
85
Allows you to stop a specific queue in a safe way. It does this as soon as the job that is running in the queue is completed.
@@ -83,6 +88,10 @@ Allows you to stop a specific queue in a safe way. It does this as soon as the j
83
88
84
89
*`queueName` - Name of the queue we will work with.
85
90
91
+
##### Options
92
+
93
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`.
94
+
86
95
##### Example
87
96
88
97
php spark queue:stop emails
@@ -106,6 +115,7 @@ Allows you to view all failed jobs. Also only from a specific queue
106
115
##### Options
107
116
108
117
*`-queue` - Queue name.
118
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`.
109
119
110
120
##### Example
111
121
@@ -124,6 +134,7 @@ Allows you to retry failed jobs back to the queue.
124
134
##### Options
125
135
126
136
*`-queue` - Queue name.
137
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`.
127
138
128
139
##### Example
129
140
@@ -139,6 +150,10 @@ Allows you to delete the failed job by ID
139
150
140
151
*`id` - ID of the failed job.
141
152
153
+
##### Options
154
+
155
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`.
156
+
142
157
##### Example
143
158
144
159
php spark queue:forget 123
@@ -151,6 +166,7 @@ Allows you to delete many failed jobs at once. Based on the failed date and queu
151
166
152
167
*`-hours` - Number of hours.
153
168
*`-queue` - Queue name.
169
+
*`-config` - The alternative config file to use. Default value relies on `config('Queue')`.
0 commit comments