File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Yii2 Queue Extension Change Log
22===============================
33
4- ## 1.0.0 under development
4+ ## 1.0.0
55
66- Enh: Improvements of log behavior
77- Enh: File driver stat info
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ The component has ability to track status of a job which was pushed into queue.
7676// Push a job into queue and get massage ID.
7777$id = Yii::$app->queue->push(new SomeJob());
7878
79- // The job is waiting for execute.
79+ // The job is waiting for execute.
8080Yii::$app->queue->isWaiting($id);
8181
8282// Worker gets the job from queue, and executing it.
8383Yii::$app->queue->isReserved($id);
8484
85- // Worker has executed the job.
85+ // Worker has executed the job.
8686Yii::$app->queue->isDone($id);
8787```
8888
Original file line number Diff line number Diff line change @@ -4,11 +4,8 @@ Upgrading Instructions
44This file contains the upgrade notes. These notes highlight changes that could break your
55application when you upgrade the package from one version to another.
66
7- Upgrade from 0.x to 1.0
8- -----------------------
9-
10- * Method ` Queue::sendMessage ` renamed to ` Queue::pushMessage ` . Check it if you use it for yourself
11- drivers.
7+ Upgrade from 0.x to 1.0.0
8+ -------------------------
129
1310* Some methods and constants was modified.
1411
@@ -17,6 +14,9 @@ Upgrade from 0.x to 1.0
1714 - Const ` Queue::EVENT_AFTER_WORK ` renamed to ` Queue::EVENT_AFTER_EXEC ` .
1815 - Const ` Queue::EVENT_AFTER_ERROR ` renamed to ` Queue::EVENT_AFTER_EXEC_ERROR ` .
1916
17+ * Method ` Queue::sendMessage ` renamed to ` Queue::pushMessage ` . Check it if you use it for yourself
18+ drivers.
19+
2020
2121Upgrade from 0.10.1
2222-------------------
Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ Yii::$app->queue->later(new DownloadJob([
8383// Отправляем занание в очередь, и получаем его ID.
8484$id = Yii::$app->queue->push(new SomeJob());
8585
86- // Задание еще находится в очереди.
86+ // Задание еще находится в очереди.
8787Yii::$app->queue->isWaiting($id);
8888
89- // Воркер взял задание из очереди, и выполняет его.
89+ // Воркер взял задание из очереди, и выполняет его.
9090Yii::$app->queue->isReserved($id);
9191
92- // Воркер уже выполнил задание.
92+ // Воркер уже выполнил задание.
9393Yii::$app->queue->isDone($id);
9494```
9595
Original file line number Diff line number Diff line change @@ -81,13 +81,13 @@ The component has ability to track status of a job which was pushed into queue.
8181// Push a job into queue and get massage ID.
8282$id = Yii::$app->queue->push(new SomeJob());
8383
84- // The job is waiting for execute.
84+ // The job is waiting for execute.
8585Yii::$app->queue->isWaiting($id);
8686
8787// Worker gets the job from queue, and executing it.
8888Yii::$app->queue->isReserved($id);
8989
90- // Worker has executed the job.
90+ // Worker has executed the job.
9191Yii::$app->queue->isDone($id);
9292```
9393
You can’t perform that action at this time.
0 commit comments