autobrr/internal/feed
soup 2bd1a68a94
feat(feeds): add force run (#1243)
* feat(feeds): add force run

* fix: simplify ForceRun

* add confirmation modal

* handle errors by using the test func

* require user input to run

* make sure to reschedule next job after forcerun

* refactor modal centering with grid

* refactor: Simplify startJob and forceRun logic

- Refactor `startJob` to accept a `runImmediately` flag. This flag controls whether the job should be run immediately or scheduled for later. This change simplifies the `ForceRun` function by allowing it to call `startJob` with `runImmediately` set to `true`.

- Remove redundant checks in `ForceRun` related to feed type. These checks are handled in `startJob`.

BREAKING CHANGE: The `startJob` function now requires a second argument, `runImmediately`. This change affects all calls to `startJob`.

* fix(web) Invalidate queries after forceRun

* refactor(feeds): init and test run

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-11-18 21:54:53 +01:00
..
cleanup.go feat(feeds): add scheduled cleanup (#1073) 2023-09-02 22:44:28 +02:00
client.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
newznab.go feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00
rss.go feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00
rss_test.go feat(feeds): improve file size parsing (#1162) 2023-10-01 22:47:47 +02:00
service.go feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00
torznab.go feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00