wendy / com.levibostian.wendy.service / Wendy / isTaskAbleToManuallyRun

isTaskAbleToManuallyRun

fun isTaskAbleToManuallyRun(taskId: Long): Boolean

Tells you if a PendingTask is able to run yet or not.

To be able to run, all of these must be true:

  1. A PendingTask is not part of a group or it is the first task of a group.

Call this before calling runTask to avoid runTask throwing an exception on you for it not being ready to run.

Exceptions

IllegalArgumentException - If the PendingTask for the taskId provided does not exist.