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 DaemonHandler with handler(). Add at least one resource with daemon.resources.add(). Use the handler in a with block for one solve block:

import jcmsuite

daemon = jcmsuite.daemon.handler()
daemon.resources.add(jcmsuite.daemon.Workstation(hostname="localhost"))

with daemon:
    result = jcmsuite.solve("project.jcmp")

Use Daemon Lifecycle to manage a DaemonHandler. Use Resources and Queues to declare resources. Use Submit and Wait 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 for remote execution prerequisites.

Daemon Pages