wendy / com.levibostian.wendy.service / Wendy / runTasks

runTasks

fun runTasks(filter: RunAllTasksFilter?): Unit

Manually run all pending tasks. Wendy takes care of running this periodically for you, but you can manually run tasks here.

Note: This will run all tasks even if you use WendyConfig.automaticallyRunTasks to enable/disable running of all the PendingTasks.

Parameters

filter - Limit running of the tasks to match the criteria outlined in RunAllTasksFilter object.

Exceptions

RuntimeException - when in WendyConfig.strict mode and you say that your PendingTask was PendingTaskResult.SUCCESSFUL when you have an unresolved error recorded for that PendingTask.