cleanupTaskClaimIfNotRunning()
Overview
public boolean function cleanupTaskClaimIfNotRunning(
required string taskKey
, required string threadId
, required string machineId
)
Releases a claim owned by this replica when its thread is no longer running. Cluster listeners call this after an onCheckRunningTaskInCluster check is delivered to the replica named by machineId. The check interception data is: taskKey, threadId, machineId and ownerStatus. ownerStatus starts as "unknown". An extension sets it to "missing" when that machine is absent, or "present" when the check has been sent to it.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| taskKey | string | Yes | Task key of the claim to check |
| threadId | string | Yes | Thread id of the claim to check |
| machineId | string | Yes | Machine id that owns the claim |