Description
On startup/restart, have services print (log) their name and some sort of versioning info, like docker image name + build date, and git repo + branch + tag + gitref (commit id), and etc...
Also print/log the current time (obviously), as well as the command line and arguments provided (though this could be problematic where passwords are provided by command line arguments)
Docker metadata isnt included in or exposed to running containers by default, so we might need to get that by adding something to our image build process (by adding stuff to the image filesystem).
The services where this should be applied include acquisition csv processing, acquisition metadata generation, webservice/api, and pipelines. We can find many of the places to insert this by looking for references to "__main__
" in the code (by running grep -rl __main__ .
-- ill put the output of the files found by this command in the first comment) but this is not necessarily exhaustive depending on how jobs are brought up (gunicorn, for example, doesnt seem to need main to start the webapp).
This issue is very closely related to cmu-delphi/covidcast-indicators#1702