Hi there,
it seems background jobs are not running correctly in production mode, worker.log
is empty while worker.errror.log
is 3M (successful jobs are stored in error as well) .
Actually i’ve set in hooks:
scheduler_events = {
"all": [
"istorecast.tasks.create_weekly_order_plan",
"istorecast.tasks.submit_margine_reparto_docs"
],
"weekly": [
"istorecast.tasks.set_margine_reparto_docs"
]
But i can’t find any of that in logs, background jobs are enabled and running ad per frappe.log:
[DEBUG] 2017-04-10 08:29:12,438 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: deltastore.istorecast.com
Queued events for site xxx.xxx.xxx
[DEBUG] 2017-04-10 08:33:12,757 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: deltastore.istorecast.com
Queued events for site xxx.xxx.xxx
I can’t find any of the jobs even in worker.error.log
Any hint?
Thx
Update: After rebooting the server jobs are executed, still logging in worker.error.log even if run success