cancelJob method

void cancelJob(
  1. String id
)

Cancels a scraping job

id is the unique identifier for the job

Implementation

void cancelJob(String id) {
  // Cancel the timer
  _jobTimers[id]?.cancel();
  _jobTimers.remove(id);

  // Remove the job from storage
  _prefs.remove(_jobKeyPrefix + id);
}