- 地平线版本:5.7
- Laravel 版本:8.40
- PHP版本:7.4.22
- Redis 驱动和版本:predis/phpredis 3.2.12 & predis 1.1
- 数据库驱动程序和版本:
描述:
ERR Error running script (call to f_281c23c60c642d42fdedcc1acc8adc7317dd75a5): @user_script:18: @user_script: 18: Write commands not allowed after non deterministic commands. Call redis.replicate_commands() at the start of your script in order to switch to single commands replication mode.
如何调用 redis.replicate_commands() ?
重现步骤:
php artisan horizon:clear --queue=supplier_feeds_queue
解决方法:
redis-cli --scan --pattern *supplier_feeds_queue* | xargs redis-cli del