Skip to contents

Extend a live task lease

Usage

ca_heartbeat(task, seconds = task@lease_seconds)

Arguments

task

A claim returned by ca_claim() or passed to an R handler.

seconds

Positive duration from the database clock. An existing longer lease is preserved. An expired lease cannot be revived.

Value

NULL, invisibly. Stale claims raise canard_lease_lost.