Skip to contents

Aborts the run of a session (or of each session in a list): transfers are canceled, child processes stopped, the partial turn recorded as aborted, queued items moved to dropped, and the status set to aborted. Idle sessions are left alone. From model code during a run, gptr_cancel() needs an allowing permission decision (a person's, in every mode but yolo; see gptr_security); otherwise it signals gptr_error_permission.

Usage

gptr_cancel(x)

Arguments

x

A session or a list of sessions.

Value

x, invisibly.

Examples

session = peter("long task", model = gptr_fake_provider(list(list(hang = TRUE))),
  .run = FALSE)
gptr_cancel(session)