Skip to content

Deadline Integration

This page explains how to submit Puzzle2 tasks to Deadline.

Plugin Info keys

  • App, Version: Target DCC
  • ModulePath: Directory where tasks.* modules live (e.g., tests_data)
  • SysPath: Extra entry added to sys.path on the Worker
  • TaskPath, DataPath: JSON files describing steps and data
  • ResultPath: Shared path for results.json

Client API

from puzzle2.plugins.deadline import client

res = client.submit(
    app="mayapy",
    job_name="Puzzle2 Example",
    version="2024",
    module_path=r"C:\\path\\to\\tests_data",
    sys_path=r"C:\\path\\to\\tests",
    task_path=r"C:\\tmp\\task_set.json",
    data_path=r"C:\\tmp\\data.json",
    result_path=r"C:\\tmp\\results.json",
)
print(res.completed.stdout)

deadlinecommand resolution

  • Uses DEADLINE_COMMAND, PATH, or standard install paths (Windows) to locate deadlinecommand.

Timeouts

  • Workers write results.json. Use PUZZLE_DEADLINE_TIMEOUT to control how long to wait when testing.