Python job scheduler application for The Digital Engagement Platform project.
- Install the following:
- Install Dependencies
- Run
make setupin the root of the project (cron/)
- Run
The development scripts for this application allow customization via an environment file in the root directory called .env. See an example of the environment variables that can be overridden in sample.env.
The following commands support various development scenarios and needs.
Before running the following commands run . venv/bin/activate to enter into the virtual env.
make runRuns the python application.
make testRuns the application unit tests
make lintLints the application code.
To run cron functionality on your local machine execute the python commands located in the run files of this directory.
For example the run_publish.sh file contains the command to publish a scheduled engagement
python3 invoke_jobs.py ENGAGEMENT_PUBLISH