@@ -189,4 +189,115 @@ interface QueueConstants
189189 * @var string
190190 */
191191 public const QUEUE_WORKER_MAX_WAITING_ROUNDS = 'QUEUE:QUEUE_WORKER_MAX_WAITING_ROUNDS ' ;
192+
193+ /**
194+ * Specification:
195+ * - Enables processing of queues with resource aware queue worker.
196+ *
197+ * @api
198+ *
199+ * @var string
200+ */
201+ public const RESOURCE_AWARE_QUEUE_WORKER_ENABLED = 'QUEUE:RESOURCE_AWARE_QUEUE_WORKER_ENABLED ' ;
202+
203+ /**
204+ * Specification:
205+ * - Max concurrent PHP processes for all queues/stores.
206+ *
207+ * @api
208+ *
209+ * @var string
210+ */
211+ public const QUEUE_WORKER_MAX_PROCESSES = 'QUEUE:QUEUE_WORKER_MAX_PROCESSES ' ;
212+
213+ /**
214+ * Specification:
215+ * - Defines whether to ignore cases when system free memory can't be detected/read or parsed.
216+ *
217+ * @api
218+ *
219+ * @var string
220+ */
221+ public const QUEUE_WORKER_IGNORE_MEMORY_READ_FAILURE = 'QUEUE:QUEUE_WORKER_IGNORE_MEMORY_READ_FAILURE ' ;
222+
223+ /**
224+ * Specification:
225+ * - Defines free memory buffer for reliability in MBs.
226+ *
227+ * @api
228+ *
229+ * @var string
230+ */
231+ public const QUEUE_WORKER_FREE_MEMORY_BUFFER = 'QUEUE:QUEUE_WORKER_FREE_MEMORY_BUFFER ' ;
232+
233+ /**
234+ * Specification:
235+ * - Defines timeout for memory read process(command) in seconds.
236+ *
237+ * @api
238+ *
239+ * @var string
240+ */
241+ public const QUEUE_WORKER_MEMORY_READ_PROCESS_TIMEOUT = 'QUEUE:QUEUE_WORKER_MEMORY_READ_PROCESS_TIMEOUT ' ;
242+
243+ /**
244+ * Specification:
245+ * - Defines a percentage by how much Worker can increase its own memory consumption within PHP process limit.
246+ * - When a limit reached - Worker will finish its job as usual to prevent memory leaks.
247+ *
248+ * @api
249+ *
250+ * @var string
251+ */
252+ public const QUEUE_WORKER_MEMORY_MAX_GROWTH_FACTOR = 'QUEUE:QUEUE_WORKER_MEMORY_MAX_GROWTH_FACTOR ' ;
253+
254+ /**
255+ * Specification:
256+ * - Defines timeout for waiting all run processes become completed in seconds.
257+ *
258+ * @api
259+ *
260+ * @var string
261+ */
262+ public const QUEUE_WORKER_PROCESSES_COMPLETE_TIMEOUT = 'QUEUE:QUEUE_WORKER_PROCESSES_COMPLETE_TIMEOUT ' ;
263+
264+ /**
265+ * Specification:
266+ * - Defines interval for checking the processes are completed in milliseconds.
267+ *
268+ * @api
269+ *
270+ * @var string
271+ */
272+ public const QUEUE_WORKER_CHECK_PROCESSES_COMPLETE_INTERVAL_MILLISECONDS = 'QUEUE:QUEUE_WORKER_CHECK_PROCESSES_COMPLETE_INTERVAL_MILLISECONDS ' ;
273+
274+ /**
275+ * Specification:
276+ * - Defines the mode of the queue processing worker.
277+ *
278+ * @api
279+ *
280+ * @var string
281+ */
282+ public const QUEUE_PROCESSING_WORKER_DYNAMIC_MODE = 'QUEUE:QUEUE_PROCESSING_WORKER_DYNAMIC_MODE ' ;
283+
284+ /**
285+ * Specification:
286+ * - Defines the threshold of the big queue.
287+ *
288+ * @api
289+ *
290+ * @var string
291+ */
292+ public const QUEUE_PROCESSING_BIG_QUEUE_THRESHOLD_BATCHES_AMOUNT = 'QUEUE:QUEUE_PROCESSING_BIG_QUEUE_THRESHOLD_BATCHES_AMOUNT ' ;
293+
294+ /**
295+ * Specification:
296+ * - Defines the limit of the processes per queue.
297+ *
298+ * @api
299+ *
300+ * @var string
301+ */
302+ public const QUEUE_PROCESSING_LIMIT_OF_PROCESSES_PER_QUEUE = 'QUEUE:PROCESSING_LIMIT_OF_PROCESSES_PER_QUEUE ' ;
192303}
0 commit comments