schedule_next_task: Decide what to do next, from the current state

View source: R/event-loop.R

schedule_next_taskR Documentation

Decide what to do next, from the current state

Description

In we have reached the allowed number of workers, then we schedule an idle job, we just need to wait until a worker is done.

Usage

schedule_next_task(state)

Arguments

state

See run_event_loop() for a description.

Details

Otherwise we schedule a job. In general the strategy is to finish check as soon as possible, so if a package is in deps_installed, then we schedule a check. Otherwise, if a package is in todo, then we schedule a dependency install.

If there is nothing we can do now, then we schedule an idle job, i.e. just wait until a worker gets done.


r-lib/revdepcheck documentation built on April 7, 2024, 6:30 p.m.