Lando
Poll the public landing-job endpoint after you submit a try push or commit through Lando.
Prerequisites
The read-only API does not need authentication. Use curl and jq.
Usage
curl -fsS "https://lando.moz.tools/landing_jobs/<JOB_ID>/" \
| jq '{status, commit_id, error, updated_at}'
Poll at a moderate interval until status is LANDED, FAILED, or
CANCELLED. Report commit_id for a landed job and error for a failed job.
Gotchas
- Status values are uppercase.
- The landed commit field is
commit_id, notlanded_commit_id. - A job can end as
CANCELLEDas well asFAILEDorLANDED. - Use
lando.moz.tools(instancelando-prod-2025, thelandoInstancein the Treeherder URL thatmach tryprints). The oldapi.lando.services.mozilla.comhost is a different instance whose job IDs overlap, so it returns unrelated jobs instead of an error. - Keep the trailing slash. Without it the endpoint returns a 301 redirect.
微信扫一扫