JobSummary#

class rapidtools.gui.JobSummary(name: str, status: str, message: str, duration_s: float = 0.0, results: list[dict[str, str]]=<factory>, url: str = '')[source]#

Bases: object

What a finished job looks like to the recipient.

Variables:
  • name (str) – Job name as shown in the GUI.

  • status (str) – 'done', 'error' or 'cancelled'.

  • message (str) – The one-line outcome.

  • duration_s (float) – Wall-clock time of the job.

  • results (list[dict[str, str]]) – {'label', 'path'} result files.

  • url (str) – Link back to the GUI.

Methods

to_dict

JSON document posted to webhooks.

property subject: str#

Subject line, e.g. 'rapidtools: Inference finished'.

property text: str#

Plain-text body shared by email and webhooks.

to_dict() → dict[str, Any][source]#

JSON document posted to webhooks.