inveniosoftware / invenio-cli

CLI module for Invenio
https://invenio-cli.readthedocs.io
MIT License
10 stars 43 forks source link

setup: delegate redis flush command #54

Open ppanero opened 4 years ago

ppanero commented 4 years ago

Create a CLI command to flush redis in the appropriate module (invenio-app?).

Currently we are using:

invenio shell --no-term-title -c "import redis; redis.StrictRedis.from_url(app.config['CACHE_REDIS_URL']).flushall(); print('Cache cleared')"

As a single command, however this should be delegate and run something similar to invenio redis flush.

fenekku commented 4 years ago

Should it be delegated because it causes issues when ran under Popen and such? It would be very minor...