scheduleCompletionExists method
Checks a schedule completion marker on the claim's Durable Object shard.
Schedule lock and completion keys have different names and would
normally hash to different shards. This method deliberately routes by
lockName so it observes the marker written by
completeScheduleClaim.
Implementation
Future<bool> scheduleCompletionExists({
required String lockName,
required String completedKey,
}) async {
final response = await _request(
'schedule_completed',
key: lockName,
payload: <String, Object?>{
'completedKey': completedKey,
},
);
return response['completed'] == true;
}