I have a crontab set up to run a python script called from a docker-compose command:
* * * * * cd path/to/repo && docker-compose run worker python -c "from directory.module import test_function; test_function()"
The module & test_function looks like this:
import logger
def test_function():
logger.info('Hello')
The docker container is up and running. However, when I go to check my log file, nothing has been written to it. I'm not sure what I need to do to get this working correctly.