Skip to content

Add job rerun endpoint and CLI tooling#81

Merged
michaelmwu merged 2 commits intomainfrom
michaelmwu/rerun-cli-fix
Mar 2, 2026
Merged

Add job rerun endpoint and CLI tooling#81
michaelmwu merged 2 commits intomainfrom
michaelmwu/rerun-cli-fix

Conversation

@michaelmwu
Copy link
Copy Markdown
Member

@michaelmwu michaelmwu commented Mar 2, 2026

Description

Add a manual rerun API (POST /jobs/{job_id}/rerun) that duplicates prior job calls using a unique idempotency key and preserves the source job's retry configuration.
Introduce a new CLI command jobsctl with status and rerun subcommands, including explicit API URL and header configuration for worker access.
Improve worker robustness by replacing Docuseal processor silent failure payloads with explicit retryable and non-retryable exceptions and handling them in actor execution paths.
Move detailed worker API endpoint documentation, argument guidance, auth notes, and CLI usage into apps/worker/README.md from the root README.
Add strict validation for rerun source job payload shape and harden CLI tests so assertions do not depend on ambient environment variables.

Related Issue

n/a

How Has This Been Tested?

Ran uv run pytest tests/unit/test_jobcli.py tests/unit/test_backend_api.py (49 passed).

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 2, 2026

Warning

Rate limit exceeded

@michaelmwu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 2 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between ec61b63 and 9d2ac53.

📒 Files selected for processing (11)
  • README.md
  • apps/worker/README.md
  • apps/worker/pyproject.toml
  • apps/worker/src/five08/backend/api.py
  • apps/worker/src/five08/jobcli.py
  • apps/worker/src/five08/worker/actors.py
  • apps/worker/src/five08/worker/crm/docuseal_processor.py
  • tests/unit/test_backend_api.py
  • tests/unit/test_docuseal_processor.py
  • tests/unit/test_jobcli.py
  • tests/unit/test_worker_actors.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch michaelmwu/rerun-cli-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@michaelmwu michaelmwu merged commit b295963 into main Mar 2, 2026
5 checks passed
@michaelmwu michaelmwu deleted the michaelmwu/rerun-cli-fix branch March 2, 2026 14:43
michaelmwu added a commit that referenced this pull request Mar 2, 2026
* add rerun endpoint and jobsctl CLI

* Fix rerun payload validation and stabilize jobsctl tests
michaelmwu added a commit that referenced this pull request Mar 2, 2026
* Require id_type for mark-id-verified (#76)

* feat: require id_type for mark-id-verified

* docs: move slash command docs to linked command reference

* docs: add consolidated Discord bot documentation file

* docs: remove obsolete kimai slash commands

* Handle optional id_type for mark-id-verified compatibility

* Add job rerun endpoint and CLI tooling (#81)

* add rerun endpoint and jobsctl CLI

* Fix rerun payload validation and stabilize jobsctl tests

* fix: confirm overwrite for ID verified fields (#80)

* fix: confirm ID verification overwrite before update

* fix: require overwrite confirmation for single field conflicts

* feat(worker): add jobsctl recent jobs query

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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