Skip to main content

task_id_eq

Return true if task id equals task_id'.

def task_id_eq(
task_id: string,
body: dict,
message: any
) - > boolean

Return true if task id equals task_id'.

Parameters

NameTypeDescription
task_idstringThe unique identifier of the task to compare against
bodydictThe dictionary object containing task metadata, expected to have an 'id' key
messageanyThe message context or metadata associated with the task, though currently unused in the comparison

Returns

TypeDescription
booleanTrue if the 'id' field in the body dictionary matches the provided task_id, otherwise False