this was a wild ride xD
scheduling a callback that every minute checks if any mining should be stopped or started
it is a happy path implementation - it just calls mining start/stop, which will in later PR manage manual overrides etc
[x] scheduling
[x] starting mining
[x] stopping mining
next PR[s] (see #204)
[ ] fix calendar picker (today is not pickable)
[ ] fix add schedule form error display (duplicated buttons)
[ ] add manual overrides
[ ] disable checkboxes if mining type is not setup correctly
[ ] when specific date is pickedfor schedule, make sure that interval is not entirely in the past
Motivation and Context
43
How Has This Been Tested?
unit tests
manual testing - adding schedules and waiting a couple minutes to see if it works correctly
to test schedule recalculation you can use singleSchedulingPeriod in useMiningScheduling(...) call inside /src/pages/home/index.tsx (which is 24h by default)
Description
this was a wild ride xD scheduling a callback that every minute checks if any mining should be stopped or started it is a happy path implementation - it just calls mining start/stop, which will in later PR manage manual overrides etc
next PR[s] (see #204)
Motivation and Context
43
How Has This Been Tested?
unit tests manual testing - adding schedules and waiting a couple minutes to see if it works correctly to test schedule recalculation you can use
singleSchedulingPeriod
inuseMiningScheduling(...)
call inside/src/pages/home/index.tsx
(which is 24h by default)