Skip to main content

MoleditPy Job Server

Tests Security Release Version Downloads License: GPL v3 MoleditPy

A LAN computational helper for MoleditPy Job Manager, with an authenticated shared job queue, headless daemon, MoleditPy administration plugin, and browser UI. Version 0.4.0. Access is for trusted users on a private network.

Job Server desktop dashboard with synthetic jobs

Job Server browser dashboard at desktop size (1440 × 1000)

The daemon owns CPU/RAM reservations and a durable SQLite job ledger. Jobs run in detached supervisors, so closing MoleditPy or stopping/restarting the daemon preserves running calculations. Native Bash and PowerShell wrappers come from an immutable Job Manager source dependency, rather than a second maintained copy.

Use from MoleditPy (plugin workflow)

Install job_server_0.4.0.zip using MoleditPy's Plugin Installer. Then open Extensions → Job Server → Server Dashboard…. If required Python libraries are missing, opening a Job Server dialog shows their names and installation guidance. Install them in MoleditPy's Python environment and retry; no daemon is started by this check. The ZIP is available from GitHub Releases, and the ZIPs are included in the Tests workflow's build artifacts. Extract the artifact download and install the inner plugin ZIP, or build it from source below.

You can operate the server from MoleditPy dialogs; the command line is optional:

  1. On the server PC, open Server Dashboard. If no administrator exists, the Job Server setup screen opens. You can reopen it with File → Setup guide….
  2. Set the optional remote Web address and resource budget. Leave the Web address blank for local access. For Tailscale, copy its printed HTTPS URL into the field.
  3. Enter the initial administrator username and password, then choose Create, start and sign in. This explicitly saves the configuration, creates the account, starts the daemon and signs in this GUI. No second password prompt is needed. An existing administrator prevents a second bootstrap account.
  4. Use Queue to pause/resume the queue or cancel a selected job.
  5. Open Users & Devices to view accounts and devices; use Account to add users, disable the selected user, or revoke the selected device.
  6. Open Settings to configure resource budgets, limits, and the daemon runtime. Save changes, then choose Server → Restart to apply them.
  7. Choose File → Open Web UI to open the browser interface when you want it.

For an already configured server, the setup screen does not open automatically. Use Account → Sign in / register device… for its desktop administration window. The desktop keeps its registered device credential and can authenticate on later uses without saving the administrator password. Initial setup can also be run from Account → Create initial administrator…; its dialog states that this starts the server and signs in the GUI. Closing the guide without applying it creates no account and starts no server.

Job Server first-run setup

Username and password are entered together in one dialog. Successful actions show a Success dialog, and interactive errors remain visible until dismissed. The administration window and Job Manager register desktop devices. Browser sign-in uses a separate temporary session and does not register a device or store a private key. Signing in to one does not sign in the others. Stop and Add user require signing in within the administration window first. If its credential file is missing, the dialog explains how to register instead of reporting "File not found".

The browser shows only sign-in before authentication. Connection failures and an unconfigured remote HTTPS origin appear on that screen instead of leaving the page at Connecting. The administration GUI remains available locally for initial account setup and explicit server start.

For pending jobs, administrators can set Priority from -1000 to 1000; higher values run first, with FIFO order for ties. Force run explicitly overrides queue pause, queue order, CPU/memory budgets and per-user active-job limits. It can overcommit this PC and requires confirmation. Dependency completion/success rules, input validation and one-time dispatch still apply. A forced running job counts against the capacity available to subsequent ordinary jobs. These controls operate on the server queue through the administration GUI and Web job details. Double-click a GUI job, or choose Queue → Job details…, to inspect its state, command, resource request, dependency, latest output and result file metadata.

Job Server desktop job details with synthetic output

For a remote server, create the initial account on that server PC (for example, through a remote desktop session), then register Job Manager on the client PC using that account and the server's HTTPS URL. Initial-account creation is not exposed as an unauthenticated network operation.

Start, Stop, Restart, Users & Devices, Settings, and Open Logs are available from the plugin's dialogs/menu. Closing or reloading the dialog does not stop the daemon; running jobs continue when MoleditPy closes. Stop preserves running supervisors.

For ordinary Python-based MoleditPy, the plugin uses the application's Python runtime. For a frozen/portable application, select a Python executable in Settings → Daemon Python runtime, with the server dependencies installed in that environment.

Job Manager 2.6.0 or later adds the server as a normal destination for submission, monitoring and downloading. Both the MoleditPy dialogs and browser UI are supported; use whichever suits the task. Neither requires operating the headless CLI day to day.

Optional headless installation

Python 3.11+; use a low-privilege OS account.

python -m pip install moleditpy-job-server
moleditpy-job-server init
moleditpy-job-server create-admin
moleditpy-job-server serve

The headless installation does not require Qt or MoleditPy. Install moleditpy-job-server[gui] for the optional administration dialogs. To install from source instead:

git clone --recurse-submodules https://github.com/HiroYokoyama/moleditpy_job_server.git
cd moleditpy_job_server
python -m pip install ".[gui]"
python -m job_server init
python -m job_server create-admin
python -m job_server serve

Open http://127.0.0.1:8766/ on the same machine. Sign in with the administrator you created. Web sign-in requires the username and password each time the page is opened or reloaded. The short-lived access token stays only in page memory; no application credentials are written to cookies, local storage or IndexedDB. Signing out invalidates that session on the server. Closing or leaving the page clears the client state and requests server-side sign-out on a best-effort basis; otherwise the server session expires within 15 minutes (or the configured token lifetime if shorter). Administrator operations require a sign-in within the last five minutes. Desktop device credentials remain available for GUI and Job Manager use.

CLI commands accept --config /path/to/settings.json before or after the command. Persistent data defaults to ~/.moleditpy/job_server/, outside installed plugin code. The listener starts only on explicit serve or GUI Start and binds 127.0.0.1.

MoleditPy plugin

python scripts/build_plugin.py

Install dist/job_server_0.4.0.zip using MoleditPy's Plugin Installer. Open Extensions → Job Server → Server Dashboard…. The GUI can bootstrap the first administrator, start/stop/restart the daemon, pause/resume the queue, manage accounts and device keys, and cancel jobs. Reloading or closing the plugin does not stop the daemon. For a frozen/portable MoleditPy application, install the server in a Python environment and set python_executable in settings to that environment's interpreter.

Job Manager integration

Install Job Manager 2.6.0 or later through its normal Plugin Installer/registry entry. Install optional cryptography>=50.0.2 in Job Manager's Python environment to enable Job Server (HTTPS). Existing SSH and local backends do not require it. In Job Manager → Hosts, add a Job Server host, configure the HTTPS origin (HTTP is allowed only on localhost), and click Sign in / register device. The server's execution OS selects the native scheduler. Submit, monitor, tail, cancel, and download then use the normal Job Manager UI.

For development and regression checks, build a reproducible companion from this server's pinned older Job Manager source:

python scripts/build_job_manager.py

The test-only companion is dist/job_manager_job_server.zip. CI builds and validates it, but it is excluded from release downloads, distribution artifacts and SHA256SUMS. Install the normal Job Manager 2.6.0+ release for everyday use; installing this test companion would replace it with the pinned older version plus the integration overlay.

The companion is generated from the audited upstream commit and an explicit integration overlay. It does not change your sibling Job Manager repository or its upstream branch. integration/job_manager.patch records changes for upstream review; integration/server_backend.py is the additional bridge module.

HTTPS on a private LAN or Tailscale tailnet

Setting up HTTPS yourself on a LAN can be cumbersome. It requires a TLS proxy, a certificate matching the server address, and a way for every client to trust that certificate. A private IP address alone does not provide a trusted HTTPS endpoint. For a small lab, Tailscale Serve is the simpler setup: it manages HTTPS certificates and forwards connections to the local Job Server.

  1. Install Tailscale on the server PC and each client PC, and connect them to the same tailnet with access permitted between them.

  2. Start Job Server on the server PC. Its default local address is http://127.0.0.1:8766.

  3. On that server PC, run:

    tailscale serve --bg http://127.0.0.1:8766
    

    If prompted, follow Tailscale's setup link to enable HTTPS for the tailnet. If you changed Job Server's port, replace 8766 with that port.

  4. Copy the HTTPS URL printed by Tailscale Serve into Job Manager's Hosts → Server URL, then use Sign in / register device. Use the printed hostname, not the server's LAN IP, and do not append :8766 to that HTTPS URL.

  5. To use the browser UI, paste that same HTTPS URL in Job Server's Settings → Web address (remote access), save the configuration, then choose Server → Restart. The JSON setting is public_url. This enables browser access at that address. Other website addresses remain rejected.

The daemon stays on loopback and ignores forwarded headers. HTTP on 127.0.0.1:8766 is the local connection from Tailscale Serve to Job Server; remote clients connect to the HTTPS URL. Same-PC clients can use the loopback HTTP URL directly without setting up HTTPS. Limit access to trusted members using your tailnet access policy. Verify that this service is not exposed by an existing Funnel or public proxy configuration. Tailscale Serve shares within your tailnet. Tailscale Funnel publishes to the internet and must never be used with Job Server.

For a LAN without Tailscale, terminate HTTPS in a proxy on the server PC, restrict it with your firewall to trusted local clients, and configure certificate trust on each client. Job Manager's host profile supports a CA certificate file for your own certificate authority. Set public_url to the proxy's exact HTTPS origin if using the browser UI. Python clients validate TLS and refuse redirects. Never forward the service through an internet-facing proxy or router port mapping.

Python client

from job_server.client import JobServerClient

client = JobServerClient("https://compute.example.org", "device.key")
# Once per device: client.enroll("alice", initial_password)
job = client.submit(
    {"name": "example", "command": "mycommand {input} > {stem}.out",
     "resources": {"cpus_per_task": 2, "memory_mb": 1024, "walltime_seconds": 3600}},
    {"input.inp": "./input.inp"},
    idempotency_key="b176bbfe-bc31-463e-af17-18a2f0678dbd",
)
status = client.request("GET", f"/jobs/{job['id']}")
client.download(job["id"], "result.out", "./results/result.out")

Reuse the same idempotency key for retries of a submission. Uploads resume at a verified contiguous offset. Python downloads resume into .partial, verify SHA-256, and rename on success. Browser downloads verify hashes but buffer the result in memory; use the Python client for large results. Browser input hashing also uses memory. Windows client credentials use DPAPI; POSIX credential files require mode 0600.

Submitting from Windows to WSL

You can launch a Linux program by putting wsl.exe in the command field of a Windows-native Job Server destination. For example, with ORCA installed inside Ubuntu:

wsl.exe -d Ubuntu --exec /opt/orca/orca {input}

Replace Ubuntu and /opt/orca/orca with your distribution and Linux executable. {input} is the uploaded input filename; leave the placeholder unquoted because the server quotes it. The WSL distribution must be available to the Windows account running Job Server. For a remote server, this means WSL on that server, not on the PC submitting the job. Check its distributions with wsl.exe --list --verbose.

WSL normally inherits the Windows command's working directory, so this example uses the uploaded files in the Windows job directory through its mounted drive. Explicit paths passed to Linux programs must use Linux syntax (/home/... or /mnt/c/...), not C:\.... --exec directly launches the executable; if the calculation needs Conda, MPI or other shell setup, put that setup in a Linux wrapper script and invoke the script instead. See Microsoft's Windows/WSL interoperability documentation.

Calling wsl.exe from a Windows job does not establish WSL process-group management. Cancellation and walltime enforcement in Windows mode terminate the Windows process tree; do not assume every Linux descendant stops. Files written elsewhere inside WSL are also outside that Windows job's result directory and storage checks.

For the server's WSL execution adapter, set these fields in its existing settings, then restart the daemon:

{
  "executor": "wsl",
  "wsl_distribution": "Ubuntu",
  "wsl_root": "/home/jobserver/.moleditpy/job_server"
}

Use a /home/... root writable by the distribution's execution user. This mode places inputs/results in the Linux filesystem and uses setsid plus Linux process-group signals for cancellation. Submit Linux commands directly, such as /opt/orca/orca {input} > {stem}.out, without another wsl.exe prefix. Job Manager selects the Bash scheduler when registering with this server. Execution mode is server-wide; each job cannot independently switch a Windows server to WSL.

Verified on Windows with the Ubuntu WSL distribution: synthetic job submission, normal and failed completion, input/result transfer, roots containing spaces, and cleanup of background descendants after completion. Wrappers use LF line endings for Bash. ORCA calculations and live cancellation on this adapter have not been verified; native Windows/Linux tests cover cancellation separately.

For WSL on your own PC without a shared server, Job Manager also offers Hosts → This machine, inside WSL (no SSH) with a distribution selector.

Execution and limits

  • Linux native and WSL-native daemon: Bash and process groups.
  • Windows native: PowerShell -NoProfile -NonInteractive, suspended launch into a Windows Job Object before execution, process-tree cleanup on cancellation.
  • Windows-hosted WSL: configure executor: "wsl", an approved wsl_distribution, and a /home/... wsl_root. Upload/commit/work directories live in the distribution through its UNC filesystem; commands run through wsl.exe and setsid.
  • CPU/RAM limits are advisory queue budgets, not kernel-enforced usage limits. Walltime and output storage checks stop offending jobs. The initial storage setting limits cumulative declared inputs per user and work-directory size per job.
  • Dependencies use server job IDs. Failed dependencies remain visibly BLOCKED unless chain_any is set. Arbitrary existing directories, force-run, HPC module/directive options, and scheduled start times are rejected.
  • An ambiguous dispatch claim or missing supervisor is held with NEEDS_RECHECK, preserving its allocation and never automatically executing it again.
  • Repeated reconciliation of an unchanged NEEDS_RECHECK warning does not start another update transaction. Uncertain jobs remain RUNNING with allocations reserved.
  • Job Manager backend operations reuse bounded in-memory authentication state; polling no longer creates a session and authentication event each time. Reuse is isolated by server/credential/TLS trust, respects expiry and administrative freshness, and is invalidated by key/trust changes or HTTP 401. Bearer tokens are not persisted.
  • Privileged administrative operations require device authentication within 5 minutes.
  • Automatic deletion is off; data and the idempotency ledger are retained.

This is a trusted-user service. Arbitrary commands have the OS account's permissions: HTTP ACLs and working directories do not isolate mutually untrusted jobs. See SECURITY.md and the specification audit.

Development

python -m pip install -e ".[test,gui]"
python -m pytest -q -n 4
python -m ruff check job_server scripts tests integration setup.py
python scripts/run_regression.py
python -m build
python scripts/build_plugin.py
python scripts/build_job_manager.py

CI covers Python 3.11/3.12/3.13 on Linux and Windows, including Qt dialogs, real native job execution, coverage reports, packaging, and the patched Job Manager regression suite. Security CI audits dependencies and source on each change and weekly. Windows-hosted WSL needs a machine with an installed distribution; its end-to-end acceptance is not claimed by native CI. See verification for actual results and outstanding platform checks. See workflow coverage for automated scenarios and the manual package-integration matrix. See workflows for release/registry setup and security audit for findings and remaining limitations.

LGPL-3.0-or-later. Upstream execution code retains its original license and attribution.

Licensing scope

First-party code in this migration is LGPL-3.0-or-later. See LICENSE, COPYING and dependency/provenance terms. Third-party components and historical releases retain their own terms.

Metadata

Release files for moleditpy-job-server 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moleditpy-job-server 0.4.0
File Size Uploaded Provenance Actions
moleditpy_job_server-0.4.0.tar.gz 263.5 kB With provenance Details for moleditpy_job_server-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moleditpy-job-server 0.4.0
File Interpreter ABI Platform Actions
moleditpy_job_server-0.4.0-py3-none-any.whl Python 3 none any Details for moleditpy_job_server-0.4.0-py3-none-any.whl

Total release size: 439.9 kB

Release files / moleditpy_job_server-0.4.0.tar.gz

Download URL moleditpy_job_server-0.4.0.tar.gz
Size 263.5 kB
Tags Source
SHA-256 checksum
How to use checksums
708a237b44f1c6eb49d35d48624e7c2f0284b8095ca315c67b244d090c524a0b
BLAKE2b-256 checksum
How to use checksums
bed4c181f07bda04166fe04167703abc2ef46e817a620ff3cdd97b4d0efd10f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / moleditpy_job_server-0.4.0-py3-none-any.whl

Download URL moleditpy_job_server-0.4.0-py3-none-any.whl
Size 176.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7161e9465d834a21af5ee9e1b8b210f463514bf69e47e92c5459ab737650cc7
BLAKE2b-256 checksum
How to use checksums
8d5a6469057c9a4ff27b096151dff0f08dae6ef5979b3058522f9999d7059346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for moleditpy-job-server 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for moleditpy_job_server-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page