Closed Bug 1043333 Opened 10 years ago Closed 10 years ago

celery management commands are not using the right log file

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: jeads)

References

Details

Migrated from:
https://github.com/mozilla/treeherder-service/issues/162

uberj commented on 4 Jun:

{
Many celery commands (being spawned by supervisord via the ./bin/* scripts) don't seem to be actually respecting their --log-file parameters.

To reproduce:

(venv)vagrant@precise32:~/treeherder-service$ pwd
/home/vagrant/treeherder-service
(venv)vagrant@precise32:~/treeherder-service$ rm -f treeherder.log
(venv)vagrant@precise32:~/treeherder-service$ ./bin/run_celerybeat 
^C
(venv)vagrant@precise32:~/treeherder-service$ ls treeherder.log 
treeherder.log

All the celery jobs seem to be creating this local treeherder.log file (they should be using whatevery $LOGFILE is in their ./bin/run_celery* script)

I think @maurodoglio suggested that https://github.com/mozilla/treeherder-service/blob/master/treeherder/settings/base.py#L159 might be part of the issue.
}
Summary: celery managemnt commands are not using the right log file → celery management commands are not using the right log file
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → jeads
You need to log in before you can comment on or make changes to this bug.