Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --backfill & --backfill-since-date options for Prowlarr. #117

Merged
merged 2 commits into from
Mar 18, 2023

Conversation

rtrox
Copy link
Collaborator

@rtrox rtrox commented Mar 17, 2023

** NOTE: depends on two prior PRs, review #114 and #115 first.**

Description of the change

Per title, creates some controls on how backfill is executed. If--backfill is set and/or --backfill-since-date is set, Prowlarr will backfill, starting from the beginning of time, or from the backfill date respectively.

Note that this is a change from prior behavior, enable-additional-metrics is no longer involved here. I think this is probably ok, breaking change wise, since the prior behavior hasn't yet seen a release.

Benefits

Allows control over backfills to prevent timeouts when attempting to backfill.

Possible drawbacks

Using a date rather than a duration helps protect against broken metrics, but conceivably a user good change their backfill date, in which case, they would see an issue in prometheus where aggregation metrics (increase(), rate(), etc) over the restart period may assume a jump in metrics which isn't actually present. This would require conscious effort, and only impacts that point in time.

Applicable issues

Additional information

@rtrox rtrox requested a review from onedr0p as a code owner March 17, 2023 21:58
@rtrox rtrox force-pushed the prowlarr_backfill_options branch from e1451a8 to 5a355e3 Compare March 18, 2023 15:17
Signed-off-by: Russell Troxel <[email protected]>
@rtrox rtrox force-pushed the prowlarr_backfill_options branch from 5a355e3 to e575eaf Compare March 18, 2023 15:19
@onedr0p
Copy link
Owner

onedr0p commented Mar 18, 2023

Looks good, but we might want to update the README to reflect this change.

https://github.com/onedr0p/exportarr#prowlarr-backfill

Signed-off-by: Russell Troxel <[email protected]>
@rtrox
Copy link
Collaborator Author

rtrox commented Mar 18, 2023

Good catch, updated.

@onedr0p onedr0p merged commit e3edbb2 into master Mar 18, 2023
@onedr0p onedr0p deleted the prowlarr_backfill_options branch March 18, 2023 19:05
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.

Prowlarr Backfill: Add option to specify backfill duration
2 participants