Controls scheduling of tasks for a given question.
Controls scheduling of tasks for a given question.
Note on virtual ticks:
1. The user supplies mock answers, each with a delay_in_s parameter.
2. When the scheduler starts up, if a question comes with mock answers,
the scheduler knows that it should use virtual ticks.
3. For each "tick group" (the set of answers with the same delay_in_s),
the scheduler advances exactly one loop iteration.
4. When the scheduler calls backend operations, it forwards the current
time, virtual or otherwise. The backend should only return
answered thunks when the current time is after the time of the
response.
Controls scheduling of tasks for a given question.
Note on virtual ticks: 1. The user supplies mock answers, each with a delay_in_s parameter. 2. When the scheduler starts up, if a question comes with mock answers, the scheduler knows that it should use virtual ticks. 3. For each "tick group" (the set of answers with the same delay_in_s), the scheduler advances exactly one loop iteration. 4. When the scheduler calls backend operations, it forwards the current time, virtual or otherwise. The backend should only return answered thunks when the current time is after the time of the response.