updateRun abstract method

FutureOr<bool> updateRun(
  1. APICronJobRun run, {
  2. String? previousOwner,
})

Updates the stored run, only if the stored one is still APICronRunStatus.running and owned by previousOwner (default: the APICronJobRun.owner of run; another owner when taking an interrupted run over). false otherwise: the run was taken over by another instance, finished or deleted, and must not be overwritten.

Implementation

FutureOr<bool> updateRun(APICronJobRun run, {String? previousOwner});