Skip to content

Extract inline closures into dedicated Job classes#1037

Merged
saeedvaziry merged 2 commits into4.xfrom
pr/extract-inline-jobs
Mar 5, 2026
Merged

Extract inline closures into dedicated Job classes#1037
saeedvaziry merged 2 commits into4.xfrom
pr/extract-inline-jobs

Conversation

@saeedvaziry
Copy link
Member

  • Replace all anonymous dispatch(function () { ... }) closures in Actions with proper named Job classes (Backup, FirewallRule, Script, Server, Service, Site, Worker, Workflow)
  • Add failed() handlers to each Job for structured error reporting and logging via ServerLog
  • Add feature tests for all new Job classes covering success and failure paths

Fixes #972

@saeedvaziry saeedvaziry merged commit 2cc9694 into 4.x Mar 5, 2026
@saeedvaziry saeedvaziry deleted the pr/extract-inline-jobs branch March 5, 2026 18:45
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