78 Commits

Author SHA1 Message Date
244eea66eb Fix potential of deadlock with MQTT 2020-09-27 21:51:36 -06:00
794ecae2a1 Fix tests due to trace spans 2020-09-27 21:12:10 -06:00
9122bd8755 Fix trace spans 2020-09-27 21:11:09 -06:00
4e21e7b96a Use built in MQTT reconnection behavior 2020-09-27 20:41:42 -06:00
f9cdb0e57b Implement proper quit behavior for update_listener 2020-09-27 20:41:27 -06:00
387cc42331 Fix tests after changing span logs 2020-09-27 20:15:21 -06:00
4fc6d24de1 Change some logging 2020-09-27 20:14:22 -06:00
63fd0be100 Implement mqtt section states 2020-09-27 19:03:24 -06:00
46fab5b50f Use immutable collections in section_runner 2020-09-27 18:28:18 -06:00
cfde268603 Add publishing of section states 2020-09-27 18:27:14 -06:00
239a289e4e Publish programs 2020-09-27 17:05:29 -06:00
b5b87fe587 Fix json naming of ProgramItem section_id to use camelCase 2020-09-27 17:00:00 -06:00
2270c69f2b Add support for publishing sections 2020-09-27 16:54:40 -06:00
12c326ad86 Update rusqlite version 2020-09-27 16:00:01 -06:00
dc724ec2ba Remove unused import in schedule 2020-09-27 15:59:45 -06:00
68b303e32d Synchronous runner quit for determinism 2020-09-27 15:21:03 -06:00
effd3d8ec1 Add message on startup 2020-09-24 19:14:26 -06:00
7efb3b81bd Fix program sequences db view 2020-09-20 18:46:18 -06:00
10f1003b56 Move most db stuff to database module 2020-09-20 17:42:11 -06:00
8c2f76ddd2 Reorganize migrations and database stuff 2020-09-20 17:32:28 -06:00
0fe30fa7a9 Add support for reading programs from database
Closes 
2020-09-20 17:23:02 -06:00
e5a2e169a2 Format some SQL queries better 2020-09-20 14:52:57 -06:00
aed95202ce Few fixes in scripts/add_migration.sh 2020-09-20 13:56:38 -06:00
6361ebbe76 Add script for adding a migration 2020-09-20 13:54:53 -06:00
2e17452315 Move migrations to files 2020-09-20 13:15:55 -06:00
9e9c1a353a Implement de/serialization of schedules
Fixes 
2020-09-20 13:02:40 -06:00
b6bcde020c Flesh out main a bit more
There is now an instance of SectionRunner and ProgramRunner
2020-09-18 22:56:18 -06:00
9120f0cbd3 Add support for scheduled programs 2020-09-18 17:27:47 -06:00
c7450f1cc5 Remove debug prints 2020-09-18 17:02:06 -06:00
a56da9b9e0 Add schedule fields to program 2020-09-18 16:03:26 -06:00
e2c06f03a5 Add Schedule module for schedule support 2020-09-18 15:57:50 -06:00
0263a2b782 Documentation for model 2020-09-18 14:47:02 -06:00
d400834f54 Add more docs for section 2020-09-18 12:20:59 -06:00
d4e067a947 Improve ProgramRunner task error handling 2020-09-17 22:26:59 -06:00
9d5877106b Implement program cancellation 2020-09-17 22:02:10 -06:00
6d33b7ed50 Add a few more ProgramRunner tests 2020-09-17 21:16:51 -06:00
690a165950 Add more ProgramRunner tests 2020-09-17 21:06:16 -06:00
6343ed1353 Add ProgramRunner
still needs some more tests
2020-09-17 20:50:19 -06:00
10abb912d4 Rename types pertaining to SectionRunner 2020-09-17 20:50:10 -06:00
a509303bc2 Add Program model
Also expose types for collections of Sections and Programs
2020-09-17 20:49:51 -06:00
46d90b4e84 Add type alias for Section id 2020-09-17 20:48:40 -06:00
7cb956c2bd Rename section_interface::SectionId
To SecId
2020-09-17 20:48:19 -06:00
bd643607a9 Add SectionRunner events 2020-09-16 21:23:05 -06:00
1d5e05270e Fix clippy warning 2020-09-16 19:07:34 -06:00
8d719032e1 Merge pull request 'Refactor SectionRunner runner_task' () from refactor-section-runner into master
Reviewed-on: 
2020-09-17 01:05:11 +00:00
f8c9fd2def Refactor SectionRunner runner_task
Create a struct to stores state and split up `runner_task` in
to separate functions.
2020-08-20 10:53:17 -06:00
4c782addb7 Move OptionFuture to its own file 2020-08-18 21:55:16 -06:00
7aaab40e0b Fix clippy warnings 2020-08-18 21:08:45 -06:00
2d0927cff2 Separate drone steps and add clippy 2020-08-18 21:06:19 -06:00
e75a326f7d Merge pull request 'Add test for SectionRunner pause/unpause' () from section-runner-pause into master
Reviewed-on: 
2020-08-19 02:57:38 +00:00