Solve the problem that some tasks in Laravel that are set withoutOverlapping() are not executed
藏色散人
Release: 2021-05-17 09:08:46
forward
2895 people have browsed it
The following tutorial column from laravel will introduce to you the solution to the problem that some tasks in Laravel that are set withoutOverlapping() are not executed. I hope it will be helpful to friends in need!
rm -rf storage/framework/ cache/*
The essence is that due to unexpected circumstances, the last executing task did not end normally, but its mutex tag file is still there, causing the Laravel framework's
php artisan schedule: The run command task is still executing, so in order to avoidOverlapping, the execution is skipped. In this case, manually deleting the mutex mark can return to normal. The mutex tag is controlled by the Laravel framework's vendor/laravel/framework/src/Illuminate/Console/Scheduling/CacheMutex.php file, using the CACHE_DRIVER specified in .env ( Corresponds to the configuration specified in config/cache.php
), generally the default is file type, corresponding to the storage/framework/cache### directory, so just clear the cache in this directory. .######
The above is the detailed content of Solve the problem that some tasks in Laravel that are set withoutOverlapping() are not executed. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn