2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

Merge pull request #1008 from gavindsouza/maintain-worker-log-dev

fix: maintain worker and worker.error logfile in dev mode
This commit is contained in:
gavin 2020-05-28 13:00:21 +05:30 committed by GitHub
commit b347bd537a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@ watch: bench watch
{% endif %} {% endif %}
{% if use_rq -%} {% if use_rq -%}
schedule: bench schedule schedule: bench schedule
worker_short: bench worker --queue short --quiet worker_short: bench worker --queue short 1>> logs/worker.log 2>> logs/worker.error.log
worker_long: bench worker --queue long --quiet worker_long: bench worker --queue long 1>> logs/worker.log 2>> logs/worker.error.log
worker_default: bench worker --queue default --quiet worker_default: bench worker --queue default 1>> logs/worker.log 2>> logs/worker.error.log
{% else %} {% else %}
workerbeat: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app beat -s scheduler.schedule' workerbeat: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app beat -s scheduler.schedule'
worker: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker -n jobs@%h -Ofair --soft-time-limit 360 --time-limit 390' worker: sh -c 'cd sites && exec ../env/bin/python -m frappe.celery_app worker -n jobs@%h -Ofair --soft-time-limit 360 --time-limit 390'