-
Notifications
You must be signed in to change notification settings - Fork 1k
Cronjobs
THIS IS A WORK IN PROGRESS AND WILL BE EXPANDED AS NEEDED
While going through the existing mmcfe projects crons I noticed that I had absolutely no idea what was going on in the backend. Since we ran into some issues with crons failing and having to do payouts by hand I decided to re-write the crons. The resulting structure shall be documented here (and reference to in the README).
This project consists of the following basic crons working together to run all required tasks in the Backend:
- findblock
- pps_payout
We are currently aiming for these cron to run independently of each other with no specific runtime order or update frequency. This might change in the future.
This cron takes care of persisting generated blocks from litecoind
to the database. Those will be used later to properly account shares to a block and reward the users.
For each persisted block in our database we check if it has been accounted for already and, if not, start counting the shares.
Runs through all blocks not matching minimum required confirmations and updates their status.
Updates the setting table with a new price entry. Configured URL via global.inc.php
.
We have some crons running already and others are still missing. This is an ongoing project and new crons will be added or existing ones improved as need be. If you read through our code and have ideas how to improve it or even add your own please let us know.
-
- installation of Redis requires TCL 8.5 or newer TCL Download Page