Skip to main content

Job messages

All published messages follow this model:

{
  "type": "job",
  "payload": {
    "id": "<job-id>",
    "state": "<job-state>",
    "returncode": "<int|null>",
    "text": "<process-output-as-str|null>"
  }
}

Each job transitions through a series of well-defined states, represented by the (JobState)[pytest_relay_run/src/pytest_relay_run/api/model.py]:

Value Meaning
"created" The job was instantiated but has not yet started running pytest.
"collected" Test collection was performed (using --collect-only), and no execution ran.
"in-progress" The job’s pytest process is currently executing tests.
"terminating" A termination signal (SIGINT) was sent, graceful shutdown is in progress.
"done" The pytest process has completed (successfully or with errors).

The following transitions trigger a JobState message:

  • created upon job creation (if not collect_only).
  • collected as result for jobs with --collect-only.
  • in-progress when a job subprocess starts executing.
  • done after a job subprocess completes and output is captured.
  • terminating when stop() is called and SIGINT is sent.

The states collected and done are final states, i.e., the job is complete.

Metadata

Release files for pytest-relay-run 0.0.1

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

Source distribution (sdist)

Source distribution for pytest-relay-run 0.0.1
File Size Uploaded
pytest_relay_run-0.0.1.tar.gz 68.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-relay-run 0.0.1
File Interpreter ABI Platform
pytest_relay_run-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 89.9 kB

Release files / pytest_relay_run-0.0.1.tar.gz

Download URL pytest_relay_run-0.0.1.tar.gz
Size 68.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8425312aae3064703144453ef2dc668d0cb42b86ef6a3a68bb51d335563d982
BLAKE2b-256 checksum
How to use checksums
84e410036ef1153c376cb024d08ad4d4ff1957a05f7b721a73eadc7e6a96a22f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.14

Release files / pytest_relay_run-0.0.1-py3-none-any.whl

Download URL pytest_relay_run-0.0.1-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51e5409144fe0531649396900aabeb4d020ec26b93e62aa8926c2da6316f0997
BLAKE2b-256 checksum
How to use checksums
ff1f3df8541797daaf1c9e709da4fdc00917ac29e852314a98a7be63330ff2fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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