Skip to content

feat(settings): add a scheduled actions page - #1484

Open
revam wants to merge 1 commit into
masterfrom
split/07-scheduled-actions
Open

revam wants to merge 1 commit into
masterfrom
split/07-scheduled-actions

Conversation

@revam

@revam revam commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Why

The server runs its recurring work as scheduled actions (/api/v3/Action/Scheduled), which replaced the frequencies dropped in Part 1. Nothing in the WebUI showed or edited them.

What changed

  • New Scheduled Actions settings tab: every action by category, with its state, progress, next and last runs, minimum interval and triggers.
  • Run now (POST …/{id}, asking first when the action says so) and cancel (…/{id}/Cancel).
  • Trigger editor: every server trigger type, the queue-cleared one included, saved with PUT …/{id}/Triggers and reset with DELETE …/{id}/Triggers; the server's errors show under the trigger they name, and an unknown type is kept as it is.
  • Polled every 2 seconds while a run is queued, otherwise every 30.

Where to look first

  • src/core/react-query/scheduled-action/helpers.ts: the trigger types and their labels in one list.
  • src/components/Settings/ScheduledActions/TriggerEditor.tsx: editing and validation.
  • src/components/Settings/ScheduledActions/ScheduledActionItem.tsx: one action's row.

Feedback wanted

Whether the trigger editor's validation matches the server, and the UX of editing triggers.

Left to do

Quick actions still call the legacy /api/v3/Action/* routes, most of which just queue the matching scheduled actions; they could start actions directly once the server's generated-UI work is final.

Stack

Part 7 of 12 in the split of #1477. Below: Part 6, the restart reasons and the server version bump. Above: Part 8, the TMDB linking fixes.

Testing

pnpm tscheck, pnpm lint, pnpm test and pnpm build pass at this branch's tip. Manual, on 6.0.0-dev.495: run and cancel an action, add an interval trigger below the minimum (the server's error shows), save and reset.

@revam
revam added this pull request to stack #1490 October 3, 2026 17:38
@harshithmohan
harshithmohan force-pushed the split/07-scheduled-actions branch from c845ed8 to 5c5ed6a Compare October 3, 2026 17:43
@revam
revam force-pushed the split/06-restart-reasons branch from 82ef6f6 to bdf640d Compare October 3, 2026 18:48
@revam
revam force-pushed the split/07-scheduled-actions branch from 5c5ed6a to 073659e Compare October 3, 2026 18:48
@harshithmohan
harshithmohan force-pushed the split/07-scheduled-actions branch 3 times, most recently from e7dfe6a to 72bdf10 Compare October 4, 2026 08:00
@harshithmohan
harshithmohan force-pushed the split/06-restart-reasons branch from 9fc2f62 to 4a29f31 Compare October 5, 2026 17:38
@harshithmohan
harshithmohan force-pushed the split/07-scheduled-actions branch from 72bdf10 to c81a481 Compare October 5, 2026 17:38
@harshithmohan
harshithmohan removed this pull request from stack #1490 October 5, 2026 17:42
@harshithmohan
harshithmohan added this pull request to stack #1492 October 5, 2026 17:42
- Listed every scheduled action from `GET Action/Scheduled` by category, with its state and progress, next run, last runs, minimum interval and triggers
- Ran one now through `POST Action/Scheduled/{id}`, asking first when it says so, and cancelled its run through `…/{id}/Cancel`
- Edited the triggers of each type, the queue-cleared one included, saved with `PUT …/{id}/Triggers` and reset with `DELETE …/{id}/Triggers`, showing the server's errors under the trigger they name
- Kept the trigger types in one list, so a new one is one entry, and kept a type it does not know as it is
- Said "Only by hand" for an action without triggers, and named the triggers for one whose triggers have no time, such as start-up
- Fetched the list again every 2 seconds while a run is in the queue, otherwise every 30
@harshithmohan
harshithmohan force-pushed the split/06-restart-reasons branch from 4a29f31 to 8b7270d Compare October 6, 2026 13:50
@harshithmohan
harshithmohan force-pushed the split/07-scheduled-actions branch from c81a481 to d3a89c8 Compare October 6, 2026 13:50
@harshithmohan
harshithmohan removed this pull request from stack #1492 October 6, 2026 13:53
@harshithmohan
harshithmohan changed the base branch from split/06-restart-reasons to master October 6, 2026 13:53

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