Alex Mikhalev
d4e067a947
Improve ProgramRunner task error handling
4 years ago
Alex Mikhalev
9d5877106b
Implement program cancellation
4 years ago
Alex Mikhalev
6d33b7ed50
Add a few more ProgramRunner tests
4 years ago
Alex Mikhalev
690a165950
Add more ProgramRunner tests
4 years ago
Alex Mikhalev
6343ed1353
Add ProgramRunner
...
still needs some more tests
4 years ago
Alex Mikhalev
10abb912d4
Rename types pertaining to SectionRunner
4 years ago
Alex Mikhalev
a509303bc2
Add Program model
...
Also expose types for collections of Sections and Programs
4 years ago
Alex Mikhalev
46d90b4e84
Add type alias for Section id
4 years ago
Alex Mikhalev
7cb956c2bd
Rename section_interface::SectionId
...
To SecId
4 years ago
Alex Mikhalev
bd643607a9
Add SectionRunner events
4 years ago
Alex Mikhalev
1d5e05270e
Fix clippy warning
4 years ago
Alex Mikhalev
f8c9fd2def
Refactor SectionRunner runner_task
...
Create a struct to stores state and split up `runner_task` in
to separate functions.
4 years ago
Alex Mikhalev
4c782addb7
Move OptionFuture to its own file
4 years ago
Alex Mikhalev
7aaab40e0b
Fix clippy warnings
4 years ago
Alex Mikhalev
4cf93a9568
Fix test usage of `tokio::time::advance`
4 years ago
Alex Mikhalev
ab994d027a
Implement SectionRunner pause/unpause
4 years ago
Alex Mikhalev
42cce06d68
Add test for SectionRunner pause/unpause
4 years ago
Alex Mikhalev
964c30b8b9
Fix clippy warnings
4 years ago
Alex Mikhalev
82180956d3
Fix more dead code warnings
4 years ago
Alex Mikhalev
7e24b03f22
Change SectionRunner to use VecDeque again
...
Change SecRun to have a RunState enum with a cancelled state instead
of removing run from the queue when cancelled.
This means we no longer need `drain_filter` which is unstable
4 years ago
Alex Mikhalev
53bd7c6679
Fix dead code warnings
4 years ago
Alex Mikhalev
ccfd130022
Implement cancel_all
4 years ago
Alex Mikhalev
43f1e59516
Add cancel_all test
4 years ago
Alex Mikhalev
fa1bf9a116
Fix tests
4 years ago
Alex Mikhalev
c58ad6b2cc
Use tracing-subscriber instead of env-logger
4 years ago
Alex Mikhalev
b56c436fbe
Add test for cancel_run
4 years ago
Alex Mikhalev
31e843a585
SectionRunner::queue_run test and impl
4 years ago
Alex Mikhalev
9f77f09c6d
Remove bad print
4 years ago
Alex Mikhalev
f720607936
Filter multiple fields
4 years ago
Alex Mikhalev
6e49d0f849
Improve logging and trace listeners
4 years ago
Alex Mikhalev
8caa569fb1
Start work on section runner and use tracing
4 years ago
Alex Mikhalev
27b0edf896
Support for reading sections from db
5 years ago
Alex Mikhalev
6bbb559356
Fix a few things with migrations
5 years ago
Alex Mikhalev
07785918c1
Initial commit
5 years ago