Skip to content

fix(jollity-worker): take a late host identity and read it again after a failure - #51

Draft
HadiKhai wants to merge 1 commit into
mainfrom
fix/jollity-worker-host-info-retry
Draft

HadiKhai wants to merge 1 commit into
mainfrom
fix/jollity-worker-host-info-retry

Conversation

@HadiKhai

@HadiKhai HadiKhai commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

The worker read the host's identity once at start, with a 1 s deadline, and never again. A host that was busy at start left the whole run without the slide to register until the app restarted.

Now a read that times out hands back the same read, so its late answer still counts. A read that fails, or a late answer that fails, is tried again on the next poll until one succeeds.

Tested with new cases for a host that answers after the deadline, a late answer taken without reading the host again, a failed read retried on the next poll, and no more reads once the identity is known, plus the worker's full test suite.

How it looks

Before on the left and after on the right, both from a cold start, with the host answering its identity 15 s late. Before, the worker has already given up and the docked card keeps the "I'll be there" button. After, the worker takes the answer when it arrives and the card turns into "Slide to register", about 19 s after the app started.

3-before-and-after-side-by-side.mp4

The same two runs about 29 s after the app started:

<img width="720" alt="Before: the "I'll be there" button. After: "Slide to register"" src="https://github.com/user-attachments/assets/6f3e09d7-b440-42aa-a131-6280dbd32bc5" />

Control: when the host answers on time, the build from before the fix docks "Slide to register" straight away, so the button in the before clip comes only from the late answer.

Control run: the slide docked with no delay

The recordings use a local 15 s delay on the host's identity answer and a local list entry for the slide, since main lists no platform for the slide yet. On today's main the fault shows only in telemetry until a platform is listed.

…r a failure

The worker read the host's identity once at start with a 1 s deadline and
never again, so a host busy at start left the whole run without the slide
to register until the app restarted. A timed-out read now hands back the
same read, whose late answer still counts; a failed read, or a late answer
that fails, is tried again from the next poll until one succeeds.

Signed-off-by: Hadi Khairallah <hadikhairallah@outlook.com>
@github-actions

Copy link
Copy Markdown

dim2-pr51-sandbox00 · logs

Network Mobile / Desktop Web
Previewnet dim2-pr51-sandbox00.testnet https://dim2-pr51-sandbox00.testnet.li

No Paseo preview: add the deploy-paseo label to deploy one.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant