beatwatch
Tiny client for BeatWatch — the dead-man's-switch monitor for scheduled jobs.
Install
pip install beatwatch
# optional: pip install beatwatch[celery]
Usage
from beatwatch import ping, set_base_url
set_base_url("https://your-beatwatch.example.com")
def nightly_report():
do_the_work()
ping("<TOKEN>") # non-blocking, never raises
Set BEATWATCH_BASE_URL env var instead of calling set_base_url, if you prefer.
Celery
from beatwatch.celery import monitored_task
@monitored_task("<TOKEN>")
def cleanup_old_records():
OldRecord.objects.filter(stale=True).delete()
The ping is only emitted when the wrapped task returns successfully — failures don't ping, so missed pings really mean "the job didn't finish."
Metadata
Release files for beatwatch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beatwatch-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for beatwatch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beatwatch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for beatwatch-0.1.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / beatwatch-0.1.0.tar.gz
| Download URL | beatwatch-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1cff3a7c9a6e402c0e275b78acd89346696c625ab1cba88b6ace1923550c515
|
|
BLAKE2b-256 checksum How to use checksums |
193c1b1732252f534ddac63bb664e24d9a16e99ad7d1f0112378e1172d1f0188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / beatwatch-0.1.0-py3-none-any.whl
| Download URL | beatwatch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c2722ad484b9bb0efc504cf27eca1c17cb66062f7886c40117c32758d4e6b07
|
|
BLAKE2b-256 checksum How to use checksums |
bd4aba10c2d2420b0876bba1760c03dce80c39a9fb60fa037bbd31e4b1eaaf5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for beatwatch 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.