You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Green Metrics Tool comes with an implemented queueing and locking mechanism. In contrast to the NOP Linux implementation this way of checking for jobs doesn't poll with a process all the time but relies on cron which is not available on NOP Linux.
126
126
127
127
You can install a cronjob on your system to periodically call:
128
-
- `python3 PATH_TO_GREEN_METRICS_TOOL/tools/jobs.py project`to measure projects in database queue
129
-
- `python3 PATH_TO_GREEN_METRICS_TOOL/tools/jobs.py email`to send all emails in the database queue
128
+
- `python3 -u PATH_TO_GREEN_METRICS_TOOL/tools/jobs.py project`to measure projects in database queue
129
+
- `python3 -u PATH_TO_GREEN_METRICS_TOOL/tools/jobs.py email`to send all emails in the database queue
130
130
131
131
The `jobs.py` uses the *Python* faulthandler mechanism and will also report to *STDERR* in case of a segfault.
132
132
When running the cronjob we advice you to append all the output combined to a log file like so:
0 commit comments