Docs OpenAPI

Docs / Types

Job

A job and where it is.

View as Markdown

Fields

  • created_atstring, RFC 3339required#
  • idJobId (string, pattern)required#

    A job's ID: job_ and then the job's UUID in 26 characters of base32, as a TypeID (github.com/jetify-com/typeid).

  • requestJobRequestrequired#

    The request as the API accepted it.

    Show 3 fields of JobRequest
    • exclusivebooleanrequired#

      Whether only this customer may ever see the job's results. It cannot change later.

    • reusebooleanrequired#

      Whether the lab may hand back results it already measured for the same reaction, at the reuse rate, instead of running it again. The match is exact: every field the two reactions state must agree, and an earlier synthesis must have been for at least the amount, with a measured purity of at least the purity asked for.

    • workWork (one of 4 kinds, by kind)required#

      Which of the four jobs this is, and what it needs. kind says which.

      Chemists review a route to a target and say what they would change. It hands back their review and no rewards.

      • kind"route_review"required#
      • routearray of Reaction, at least 1required#

        The route's reactions, in order.

      • target_smilesSmiles (string, pattern ^[!-~]+$)required#

        A molecule as SMILES. The lab checks the chemistry; the API checks only that it is printable ASCII without spaces.

  • reusedarray of Name (string, at most 200 chars, pattern)required#

    The IDs of the request's reactions answered by results measured for an earlier job, which the lab does not run and which cost the reuse rate. A synthesis is served whole or not at all, and lists target when it is. It is empty when the job reuses nothing, and until the lab may see the job, seconds after it is made.

  • statusJobStatus (one of "queued", "running", "completed", "canceled")required#

    Where a job is. The database works it out; a job starts when the lab sends its first record for it. A job the lab reopens to correct or add to its data is running again until its next package is ready.

  • canceled_atstring, RFC 3339 or null#
  • completed_atstring, RFC 3339 or null#

    When the job's newest package was written. It is null while the job is not completed.

  • creditsNonNegative (number, 0 to 1012) or null#

    What the job holds until it completes, then what it cost, in credits. It is null for a lab system's key.

  • package_versioninteger, at least 0 or null#

    The number of the job's newest package: 1 for its first, and one more each time the lab reopens the job and finishes it again. Compare it with the version you hold to see a new package. It is null until the first.

  • started_atstring, RFC 3339 or null#

Used by