Fundraising/Data and flow/Queues/Testing
Appearance
These instructions are for our docker dev environment .
Once you have the environment set up, you can use the below commands to work with the queues.
Looking at what is in the queue
./scripts/queues-cli.sh ./scripts/donor-queues-redis-cli.sh
Clearing out what is in the queues
./scripts/queues-clear.sh
Running the queue consumers
./scripts/consume-queues.sh
Specific parts
./scripts/consume-queues-civicrm.sh ./scripts/consume-queues-donorprefs.sh ./scripts/consume-queues-smashpig.sh
Running a specific smashpig queue from inside the container
docker@smashpig:/srv/smashpig$ php Maintenance/ConsumePendingQueue.php
Clear pending transactions from smashpig pending db with certain payment methods and already pending more than certain days
docker@smashpig: php Maintenance/DeleteExpiredPendingMessages.php --gateway=ingenico --days=1
Running specific queue consumers
- Run donations queue consumer
cv api4 WMFQueue.Consume timeLimit=280 queueConsumer=Donation queueName=donations
- Run recurring queue consumer
cv api4 WMFQueue.Consume timeLimit=280 queueConsumer=Recurring queueName=recurring
- Refund
cv api4 WMFQueue.Consume timeLimit=280 queueConsumer=Refund queueName=refund