Partitioned scheduling uses a ScheduleCount to keep track of whether tasks need to be scheduled / re-scheduled. However, there may exist race conditions where the pipeline itself needs to re-schedule the task when the input queue is non-empty.
This issue serves as a reminder/spike task to
- Investigate possible race conditions
- Add tests for possible race conditions