The demo
The demo syncs four pretend shop accounts. The pretend shop answers slowly, sometimes returns 429 or 503, and one page of one account is broken on purpose.
docker compose up --build
Open http://localhost:8080.
Things to watch for:
- Lanes.
acme-usandacme-eushare the laneacmeand take turns.globexandinitechrun beside them. - Newest first. Each account’s orders arrive from the most recent month backwards.
- Retries. Jobs that hit a 429 or 503 turn
failed, wait, and continue from the cursor they had reached. - Giving up. One slice of
globexfails on its second page every time. After five attempts it isdeferred, the rest of the lane finishes, it gets its last attempt and endsabandonedwith cursor50. - Requeue. Press Requeue stopped jobs. The broken page has healed by then, and the job completes from cursor
50, not from the start. - Restart. Run
docker compose restart demoduring the first minute. The jobs that were running arependingagain with their cursors, and continue after the restart.
The same information without the page:
docker compose exec postgres psql -U postgres -d synclane \
-c "select id, owner, type, status, cursor, processed_count, attempt_count, error from synclane.jobs order by id"