Check if a task invocation with the given name has been cached before.
Future<bool> hasTask(String taskName) async { final taskFile = _taskFile(taskName); return await taskFile.exists(); }