A scheduled job runner you can poke at: worker pool, retries with backoff, failures, and a re-login when the session expires.
The same patterns I use in real automation services, with the knobs exposed. Turn the failure rate up and watch the retries pile in. All the jobs and numbers are made up.