Tag: Job
-
Post Views: 18 1. Job runs an error in Laravel 9: Has Been Attempted too many times or run too long. The job may have previously previously timed out.. as shown in Figure 1 2. The total number of records found in the table is 8761297. Based on the chunk method, the entire table is retrieved in units of 10…
-
Post Views: 16 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…
-
Post Views: 18 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…
-
Post Views: 21 1. In a queue task, you need to download the zip file first, and then decompress it. Now, after the decompression is successful, you need to delete the downloaded zip file. Now implemented. 2. When the decompression fails: call to undefined function modules\themestoredb\handlers\checkhere(), you also need to delete the corresponding zip file, you need to Failed(Exception $Exception)…
-
Post Views: 39 1. The copy API application is QQ and WX. After adjusting the corresponding configuration, the final application directory structure is as follows 2. Nginx-based single domain name configuration on Yii 2 advanced project template, refer to the website:https://www.shuijingwanwq.com/2018/08/16/2836/, the API application is cross-channel, the QQ application is Penguin, and the WX application is the WeChat public account,…
-
Post Views: 61 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 file to the resource directory published by the channel, after the queue task is successfully executed, call the corresponding service, otherwise, insert the release log (asynchronous)…