Monthly Archive: October 2018

0

In Yii2 advanced template, the task is implemented asynchronously based on the Yii2 queue extension, and the additional event handler is attached, after each successful execution of the job, when an exception occurs during the job execution.

Post Views: 60 1. By configuring the additional event processor, edit \environments\dev\common\config\main-local.php, \environments\prod\common\config\main-local.php, as shown in Figure 1 2. Edit \QQ\RESTS\QQ_CW_APP\IndexAction.php, an entry of a push queue 3. Edit \Common\Services\AssetService.php, copy the source resource...

0

Implement asynchronous execution of tasks based on Yii2 queue extension in Yii2 advanced template

Post Views: 12 1. Install the Yii2 queue extension and execute the following commands 2. Check composer.json, the installation has been successful 3. Register multiple queue components to the console, edit \console\config\main.php 4. Configuration...

0

When executing .\nginx -s reload , it prompts: nginx:[emerg]Host not found in upstream “api.aims-api.localhost” in c:/nginx-1.10.1/conf/vhosts/aims.conf:14

Post Views: 6 1. When executing .\nginx -s reload, prompt: nginx:[emerg]host not found in upstream ‘api.aims-api.localhost’ in c:/nginx-1.10.1/conf/vhosts/aims.conf:14, as shown in Figure 1 2. Check lines 13, 14, and 15 of c:/nginx-1.10.1/conf/vhosts/aims.conf 3. Check...