# Daemon Execution Use daemon execution when you need explicit control over the resources for solve calls. Use a daemon to connect to SLURM queues or clusters on remote hosts. A daemon is not required for the default local solve path. Before you start, create a {class}`DaemonHandler ` with {func}`handler() `. Add at least one resource with {meth}`daemon.resources.add() `. Use the handler in a `with` block for one solve block: ```python import jcmsuite daemon = jcmsuite.daemon.handler() daemon.resources.add(jcmsuite.daemon.Workstation(hostname="localhost")) with daemon: result = jcmsuite.solve("project.jcmp") ``` Use [Daemon Lifecycle](daemon.md) to manage a {class}`DaemonHandler `. Use [Resources and Queues](resources.md) to declare resources. Use [Submit and Wait](submit_wait.md) to submit work before you collect results. If handler startup or resource registration fails, inspect the exception and correct the installation, resource declaration, or connection before you submit work. See [Resources and Queues](resources.md) for remote execution prerequisites. ## Daemon Pages ```{toctree} :maxdepth: 1 :titlesonly: daemon resources submit_wait ```