MetriBeacon
Menu

Run commands and retry offline reports

Report a command's execution while preserving its output and exit status.

On this page

What you need

A Job or Workflow monitor, a configured CLI identity and a device key.

How to do it

  1. Run metribeacon run --monitor-id MONITOR_UUID -- PROGRAM ARGUMENTS. The command after -- is executed directly.
  2. Use --strict only if reporting failure should also make an otherwise successful command fail. Use --scheduled-for when a scheduled run needs an explicit target time.
  3. After a connection problem, run metribeacon run flush to send buffered reports. Check the run history before executing the real task again.

Good to know

The wrapper does not add a shell. It preserves the command's input, output and exit or signal status. In strict mode, a successful command with unsent reports can return 75.

The offline buffer survives restarts but has size and age limits. A failed report is separate from a failed task.

shell
metribeacon run --monitor-id MONITOR_UUID --strict -- /usr/local/bin/demo-job
metribeacon run flush --json

If something goes wrong

Separate the task's error from a reporting error. Flushing sends saved reports; it does not execute the task again.