GetBarrier
Fetches a barrier by name. For blocking until release, use WaitAtBarrier instead of polling.
Read-only and safe to retry.
Request
{
"namespace_name": "pipelines",
"barrier_name": "phase_1_complete"
}
Response
- Returns
NotFoundif the namespace does not exist. - Returns the current
generation,arrived_processes, andexpected_processes. - Returns
NotFoundif the barrier does not exist (including after it was auto-deleted followingdelete_inactive_after_secondsof inactivity). metadatais the optional, opaque map stored with the barrier — see Metadata.
{
"barrier": {
"name": "phase_1_complete",
"description": "End of map phase",
"expected_processes": 4,
"arrived_processes": 2,
"generation": 1,
"version": 1,
"created_at": 1718150400000000000,
"updated_at": 1718150420000000000,
"last_activity_at": 1718150420000000000,
"delete_inactive_after_seconds": 3600,
"metadata": {
"phase": "map"
}
}
}