wendy / com.levibostian.wendy.service / Wendy / runTask

runTask

fun runTask(taskId: Long): Unit

Use this function along with manually run tasks to have Wendy run it for you. If it is successful, Wendy will take care of deleting it for you.

Parameters

taskId - The PendingTask.taskId of PendingTask you wish to run.

Exceptions

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

RuntimeException - If the PendingTask returns false for isTaskAbleToManuallyRun.

See Also

WendyConfig.addTaskStatusListenerForTask