Python job scheduler application for The Modern Engagement Tool project.
- Install the following:
- Install Dependencies
- Run
make setup
in the root of the project (met-api)
- 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 run
Runs the python application.
make test
Runs the application unit tests
make lint
Lints the application code.
To run met-cron functionality on your local machine execute the pyhton commands located in the run files of this directory.
For example the run_met_publish.sh
file contains the coammnd to publish a scheduled engagement
python3 invoke_jobs.py ENGAGEMENT_PUBLISH