# Runtime And Execution Use this section to choose where and when `jcmsuite` runs solve work. See the [runtime API reference](../reference/index.md) for generated signatures. ## Choose A Runtime Path Start with the first row that matches your workflow. Use the default local path unless another row provides a required setting. | Use scenario | Read first | Main requirement | | --- | --- | --- | | One local solve | [Contexts](contexts.md) | A valid JCMsuite installation and `JCMROOT` | | Several operations with one configuration | [Contexts](contexts.md) | A {class}`SolverContext ` with the required settings | | Explicit resource control | [Daemon execution](daemon/index.md) | A {class}`DaemonHandler ` and at least one resource declaration | | A running event loop | [Async execution](async.md) | `asynchronous=True` and an `await` expression | | A remote host or scheduler | [Resources and queues](daemon/resources.md) | Network access, authentication, shared or transferred project files, and result collection | Do not configure a daemon, scheduler, or asynchronous call for a simple local solve. Add one of these options only when the local default does not meet the workflow requirement. ## Key terms The following terms describe the runtime choices: - A **context** selects a JCMsuite installation and runtime settings. Use a {class}`SolverContext ` to represent it. - A **daemon** manages resource-backed solve execution. - A **handler** controls the daemon lifecycle and resource declarations. The public handler type is a {class}`DaemonHandler `. - A **resource** describes where and how the daemon can run solve work. - A **scheduler** assigns work to compute resources. `SLURM` is the supported scheduler queue type. - An **event loop** runs asynchronous operations and resumes them when they are ready. - A **{term}`submission`** is a solve handle sent to a daemon. See [Submit and Wait](daemon/submit_wait.md) to collect its result. Use [Contexts](contexts.md) to select runtime configuration. Use [Daemon Execution](daemon/index.md) for resource-backed execution. Use [Async Execution](async.md) when an event loop is already running. ## Failure behavior If `JCMROOT` is missing or the required JCMsuite binaries are unavailable, context startup or a solve can raise {class}`RuntimeContextError `. If daemon startup or resource registration fails, inspect the exception and the daemon status before submitting more work. If an asynchronous call fails, await the coroutine inside the existing event loop and handle the raised exception there. For your next step, select the matching page in the table above. Each page states its required setup and collection behavior before advanced options. ## Runtime pages ```{toctree} :maxdepth: 2 :titlesonly: contexts daemon/index async ```