You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backup task creates way too many, too often and redundant backups #4290
Please verify that this bug has NOT been raised before.
I checked and didn't find a similar issue
Describe the bug*
Backup creates backups every 2 minutes.
Database backups retain last 10 backups (limited by number of files, not by time). So if Inventree generates 10 backups in a row, your day old backups are gone.
Media file backups are removed after 4 days. Right now, Inventree backups take up about 541 GB and 2732 files on disk due to these bugs for me. For now, I'll make cron script to remove these files, however each day still consumes about 144 GB...
If multiple workers are allowed, each worker makes its own backup concurrently, thus making redundant and unneeded backups. This leads even to files with identical names and huge computational demands on the server.
Steps to Reproduce
Start docker Inventree 0.9.2 and observe behaviour of backup.
Expected behaviour
Backups shouldn't be run every 2 minutes.
Backup period should be user configurable.
Backup retention should be consistent - either number of files or number of days (I prefer days).
Backup retention should include total size of backups.
Only one worker should be tasked with creating backup, not all of them.
First worker starts the "backup" task, but exceeds the configured task timeout, and fails
The "timeout" occurs after some files have actually been generated (which don't get rolled back)
After 2 minutes (120 seconds delay) the next worker takes up the baton
However the software is configured for 5x maximum attempts on any given task, is this being observed here? Are you seeing "infinite backup attempts" occurring every 2 minutes forever?
A closer inspection of the django-q documentation shows that the max_attempts parameter is the one which actually controls the total number of retries (set to 0 - infinite retries)..
I checked, and the backup on my system also creates too many files, but is not running on an infinite loop.
File list:
-rw-r--r-- 1 root root 235499486 Jan 31 13:16 199169013bf8-2023-01-31-131529.tar.gz
-rw-r--r-- 1 root root 235499486 Jan 31 13:16 199169013bf8-2023-01-31-131529.tar_AVOb7BT.gz
-rw-r--r-- 1 root root 235499786 Feb 1 13:16 da5c4ce7ff7c-2023-02-01-131523.tar.gz
-rw-r--r-- 1 root root 235499786 Feb 1 13:16 da5c4ce7ff7c-2023-02-01-131523.tar_ETrlcQU.gz
-rw-r--r-- 1 root root 235499786 Feb 1 13:16 da5c4ce7ff7c-2023-02-01-131523.tar_wTKcdUe.gz
-rw-r--r-- 1 root root 53714944 Feb 2 13:18 da5c4ce7ff7c-2023-02-02-131656.tar.gz
-rw-r--r-- 1 root root 44347392 Feb 2 13:18 da5c4ce7ff7c-2023-02-02-131656.tar_5hOZTzw.gz
-rw-r--r-- 1 root root 235499860 Feb 2 13:18 da5c4ce7ff7c-2023-02-02-131656.tar_kpvMYWl.gz
-rw-r--r-- 1 root root 235499860 Feb 2 13:19 da5c4ce7ff7c-2023-02-02-131855.tar.gz
-rw-r--r-- 1 root root 235499860 Feb 2 13:19 da5c4ce7ff7c-2023-02-02-131855.tar_9nhfa1j.gz
-rw-r--r-- 1 root root 143145 Feb 1 13:15 default-da5c4ce7ff7c-2023-02-01-131516.psql.bin_BzBm8Mr.gz
-rw-r--r-- 1 root root 143145 Feb 1 13:15 default-da5c4ce7ff7c-2023-02-01-131518.psql.bin.gz
-rw-r--r-- 1 root root 147204 Feb 2 13:15 default-da5c4ce7ff7c-2023-02-02-131454.psql.bin.gz
-rw-r--r-- 1 root root 147421 Feb 2 13:15 default-da5c4ce7ff7c-2023-02-02-131456.psql.bin.gz
-rw-r--r-- 1 root root 147345 Feb 2 13:15 default-da5c4ce7ff7c-2023-02-02-131459.psql.bin.gz
-rw-r--r-- 1 root root 144968 Feb 2 13:16 default-da5c4ce7ff7c-2023-02-02-131654.psql.bin.gz
-rw-r--r-- 1 root root 144968 Feb 2 13:16 default-da5c4ce7ff7c-2023-02-02-131654.psql.bin_9bWvWPJ.gz
-rw-r--r-- 1 root root 144968 Feb 2 13:16 default-da5c4ce7ff7c-2023-02-02-131654.psql.bin_dpmey8b.gz
-rw-r--r-- 1 root root 144764 Feb 2 13:18 default-da5c4ce7ff7c-2023-02-02-131855.psql.bin.gz
-rw-r--r-- 1 root root 144764 Feb 2 13:18 default-da5c4ce7ff7c-2023-02-02-131855.psql.bin_LCuVoSk.gz
Logs during the time of creation of backups:
13:14:52 [Q] INFO Process-1 created a task from schedule [InvenTree.tasks.run_backup]
13:14:52 [Q] INFO Enqueued 1946
13:14:52 [Q] INFO Process-1 created a task from schedule [InvenTree.tasks.run_backup]
13:14:52 [Q] INFO Enqueued 1947
13:14:52 [Q] INFO Process-1 created a task from schedule [InvenTree.tasks.run_backup]
13:14:52 [Q] INFO Enqueued 1948
13:14:52 [Q] INFO Process-1 created a task from schedule [build.tasks.check_overdue_build_orders]
13:14:52 [Q] INFO Enqueued 1949
13:14:52 [Q] INFO Process-1 created a task from schedule [build.tasks.check_overdue_build_orders]
13:14:52 [Q] INFO Enqueued 1950
13:14:52 [Q] INFO Process-1 created a task from schedule [build.tasks.check_overdue_build_orders]
13:14:52 [Q] INFO Enqueued 1951
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.delete_old_notifications]
13:14:52 [Q] INFO Enqueued 1952
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.delete_old_notifications]
13:14:52 [Q] INFO Enqueued 1953
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.delete_old_notifications]
13:14:52 [Q] INFO Enqueued 1954
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.update_news_feed]
13:14:52 [Q] INFO Enqueued 1955
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.update_news_feed]
13:14:52 [Q] INFO Enqueued 1956
13:14:52 [Q] INFO Process-1 created a task from schedule [common.tasks.update_news_feed]
13:14:52 [Q] INFO Enqueued 1957
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_purchase_orders]
13:14:52 [Q] INFO Enqueued 1958
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_purchase_orders]
13:14:52 [Q] INFO Enqueued 1959
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_purchase_orders]
13:14:52 [Q] INFO Enqueued 1960
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_sales_orders]
13:14:52 [Q] INFO Enqueued 1961
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_sales_orders]
13:14:52 [Q] INFO Enqueued 1962
13:14:52 [Q] INFO Process-1 created a task from schedule [order.tasks.check_overdue_sales_orders]
13:14:52 [Q] INFO Enqueued 1963
13:14:52 [Q] INFO Process-1 created a task from schedule [part.tasks.check_missing_pricing]
13:14:52 [Q] INFO Enqueued 1964
13:14:52 [Q] INFO Process-1 created a task from schedule [part.tasks.check_missing_pricing]
13:14:52 [Q] INFO Enqueued 1965
13:14:52 [Q] INFO Process-1 created a task from schedule [part.tasks.check_missing_pricing]
13:14:52 [Q] INFO Process-1:4 processing [mexico-magnesium-iowa-hawaii]
13:14:52 [Q] INFO Process-1:3 processing [batman-tango-butter-white]
13:14:52 [Q] INFO Process-1:2 processing [diet-west-carbon-spring]
13:14:52 [Q] INFO Process-1:1 processing [saturn-white-edward-november]
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_TASKS_DAYS' to cache
13:14:52 [Q] INFO Process-1:2 processing [magazine-mango-carolina-eleven]
13:14:52 [Q] INFO Process-1:3 processing [florida-spaghetti-papa-queen]
13:14:52 [Q] INFO Process-1:4 processing [oven-west-queen-two]
13:14:52 [Q] INFO Process-1:1 processing [august-orange-eleven-two]
13:14:52 [Q] INFO Process-1:2 processing [fanta-speaker-tennessee-double]
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_TASKS_DAYS' to cache
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_TASKS_DAYS' to cache
13:14:52 [Q] INFO Process-1:3 processing [wolfram-princess-yankee-jig]
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_TASKS_DAYS' to cache
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_ERRORS_DAYS' to cache
13:14:52 [Q] INFO Processed [diet-west-carbon-spring]
13:14:53 [Q] INFO Processed [batman-tango-butter-white]
13:14:53 [Q] INFO Processed [mexico-magnesium-iowa-hawaii]
13:14:53 [Q] INFO Process-1:4 processing [video-summer-aspen-video]
13:14:53 [Q] INFO Process-1:1 processing [bravo-spaghetti-sad-hydrogen]
13:14:53 [Q] INFO Process-1:2 processing [quiet-green-hydrogen-beer]
13:14:53 [Q] INFO Process-1:3 processing [rugby-speaker-oven-seventeen]
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_NOTIFICATIONS_DAYS' to cache
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_ERRORS_DAYS' to cache
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_NOTIFICATIONS_DAYS' to cache
13:14:53 [Q] INFO Process-1:1 processing [failed-cold-zebra-may]
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_NOTIFICATIONS_DAYS' to cache
Saving setting 'InvenTreeSetting:INVENTREE_DELETE_ERRORS_DAYS' to cache
13:14:53 [Q] INFO Process-1:4 processing [aspen-ack-pizza-chicken]
13:14:53 [Q] INFO Process-1:2 processing [low-queen-fifteen-bacon]
13:14:53 [Q] INFO Process-1:3 processing [fillet-social-oklahoma-fish]
Starting new HTTPS connection (1): api.github.com:443
Starting new HTTPS connection (1): api.github.com:443
13:14:53 [Q] INFO Process-1:1 processing [nitrogen-kentucky-west-zulu]
13:14:53 [Q] INFO Processed [saturn-white-edward-november]
Updating exchange rates from https://api.exchangerate.host/latest
Using base currency 'EUR'
13:14:53 [Q] INFO Processed [magazine-mango-carolina-eleven]
13:14:53 [Q] INFO Processed [florida-spaghetti-papa-queen]
https://api.github.com:443 "GET /repos/inventree/inventree/releases/latest HTTP/1.1" 200 839
https://api.github.com:443 "GET /repos/inventree/inventree/releases/latest HTTP/1.1" 200 839
Latest InvenTree version: '0.9.2'
Latest InvenTree version: '0.9.2'
Saving setting 'InvenTreeSetting:INVENTREE_LATEST_VERSION' to cache
Saving setting 'InvenTreeSetting:INVENTREE_LATEST_VERSION' to cache
Event triggered: 'common_inventreesetting.saved'
13:14:53 [Q] INFO Processed [oven-west-queen-two]
Event triggered: 'common_inventreesetting.saved'
13:14:54 [Q] INFO Enqueued 1966
13:14:54 [Q] INFO Process-1:2 processing [venus-autumn-august-magnesium]
13:14:54 [Q] INFO Enqueued 1967
13:14:54 [Q] INFO Process-1:3 processing [spring-cup-white-bacon]
Updating exchange rates from https://api.exchangerate.host/latest
Updating exchange rates from https://api.exchangerate.host/latest
Using base currency 'EUR'
Using base currency 'EUR'
13:14:54 [Q] INFO Processed [august-orange-eleven-two]
13:14:54 [Q] INFO Processed [wolfram-princess-yankee-jig]
Starting new HTTPS connection (1): api.github.com:443
13:14:54 [Q] INFO Process-1:1 processing [south-dakota-quiet-louisiana]
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Backing Up Database: inventree
13:14:55 [Q] INFO Processed [fanta-speaker-tennessee-double]
https://api.github.com:443 "GET /repos/inventree/inventree/releases/latest HTTP/1.1" 200 839
13:14:55 [Q] INFO Processed [bravo-spaghetti-sad-hydrogen]
13:14:55 [Q] INFO Process-1:3 processing [arizona-crazy-avocado-iowa]
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
13:14:55 [Q] INFO Processed [video-summer-aspen-video]
Latest InvenTree version: '0.9.2'
13:14:55 [Q] INFO Processed [quiet-green-hydrogen-beer]
Saving setting 'InvenTreeSetting:INVENTREE_LATEST_VERSION' to cache
13:14:55 [Q] INFO Processed [rugby-speaker-oven-seventeen]
Event triggered: 'common_inventreesetting.saved'
13:14:56 [Q] INFO Processed [failed-cold-zebra-may]
13:14:56 [Q] INFO Enqueued 1968
13:14:56 [Q] INFO Process-1:4 processing [georgia-fifteen-kansas-pasta]
13:14:56 [Q] INFO Process-1:2 processing [louisiana-two-leopard-hawaii]
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Backing Up Database: inventree
13:14:56 [Q] INFO Processed [low-queen-fifteen-bacon]
13:14:57 [Q] INFO Process-1:2 processing [angel-harry-violet-queen]
13:14:57 [Q] INFO Process-1:2 processing [lactose-leopard-five-seventeen]
13:14:57 [Q] INFO Process-1:2 processing [timing-ten-maryland-kansas]
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1416: RuntimeWarning: DateTimeField NotificationEntry.updated received a naive datetime (2022-11-04 13:14:57.414154) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
13:14:58 [Q] INFO Process-1:2 processing [tennessee-nuts-massachusetts-november]
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1416: RuntimeWarning: DateTimeField NotificationEntry.updated received a naive datetime (2022-11-04 13:14:58.029508) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
13:14:58 [Q] INFO Process-1:2 processing [two-golf-happy-connecticut]
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1416: RuntimeWarning: DateTimeField NotificationEntry.updated received a naive datetime (2022-11-04 13:14:58.036177) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
13:14:58 [Q] INFO Process-1:2 processing [earth-mockingbird-uniform-solar]
13:14:59 [Q] INFO Processed [fillet-social-oklahoma-fish]
Backing Up Database: inventree
update_news_feed: Sync done
13:15:00 [Q] INFO Process-1:2 processing [triple-summer-edward-lima]
update_news_feed: Sync done
13:15:00 [Q] INFO Process-1:2 processing [angel-lemon-texas-ack]
update_news_feed: Sync done
13:15:00 [Q] INFO Process-1:2 processing [glucose-butter-avocado-don]
13:15:00 [Q] INFO Process-1:2 processing [november-seventeen-nuts-ten]
13:15:00 [Q] INFO Process-1:2 processing [pennsylvania-jersey-comet-lithium]
13:15:00 [Q] INFO Process-1:2 processing [video-ceiling-leopard-cat]
13:15:00 [Q] INFO Process-1:2 processing [seven-hotel-item-california]
13:15:00 [Q] INFO Process-1:2 processing [princess-sweet-mirror-leopard]
13:15:00 [Q] INFO Process-1:2 processing [tennis-nebraska-ink-sixteen]
Saving setting 'InvenTreeSetting:PRICING_UPDATE_DAYS' to cache
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1358: RuntimeWarning: DateTimeField PartPricing.updated received a naive datetime (2023-01-03 00:00:00) while time zone support is active.
warnings.warn("DateTimeField %s.%s received a naive datetime "
13:15:00 [Q] INFO Process-1:2 processing [video-maine-mirror-chicken]
Writing file to default-da5c4ce7ff7c-2023-02-02-131454.psql.bin.gz
Writing file to default-da5c4ce7ff7c-2023-02-02-131456.psql.bin.gz
Writing file to default-da5c4ce7ff7c-2023-02-02-131459.psql.bin.gz
13:15:02 [Q] INFO Processed [nitrogen-kentucky-west-zulu]
13:15:05 [Q] INFO Processed [spring-cup-white-bacon]
13:15:10 [Q] INFO Processed [aspen-ack-pizza-chicken]
13:15:14 [Q] INFO Processed [venus-autumn-august-magnesium]
13:15:17 [Q] INFO Processed [louisiana-two-leopard-hawaii]
13:15:23 [Q] INFO Processed [angel-harry-violet-queen]
13:15:26 [Q] INFO Processed [lactose-leopard-five-seventeen]
13:15:30 [Q] INFO Processed [timing-ten-maryland-kansas]
13:15:31 [Q] INFO Processed [tennessee-nuts-massachusetts-november]
13:15:32 [Q] INFO Processed [two-golf-happy-connecticut]
13:15:32 [Q] INFO Processed [earth-mockingbird-uniform-solar]
13:15:32 [Q] INFO Processed [triple-summer-edward-lima]
13:15:32 [Q] INFO Processed [angel-lemon-texas-ack]
13:15:32 [Q] INFO Processed [glucose-butter-avocado-don]
13:15:32 [Q] INFO Processed [november-seventeen-nuts-ten]
13:15:33 [Q] INFO Processed [pennsylvania-jersey-comet-lithium]
13:15:33 [Q] INFO Processed [video-ceiling-leopard-cat]
13:15:33 [Q] INFO Processed [seven-hotel-item-california]
13:15:33 [Q] INFO Processed [princess-sweet-mirror-leopard]
13:15:33 [Q] INFO Processed [tennis-nebraska-ink-sixteen]
13:16:26 [Q] WARNING reincarnated worker Process-1:1 after timeout
13:16:26 [Q] WARNING reincarnated worker Process-1:3 after timeout
13:16:26 [Q] INFO Process-1:10 ready for work at 101
13:16:26 [Q] INFO Process-1:10 processing [robert-pizza-fifteen-white]
13:16:27 [Q] INFO Process-1:11 ready for work at 102
13:16:27 [Q] INFO Process-1:11 processing [maine-mexico-magazine-asparagus]
Registering triggered event: 'common_inventreesetting.saved'
Saving setting 'InvenTreeSetting:ENABLE_PLUGINS_EVENTS' to cache
Saving setting 'InvenTreeSetting:PRICING_UPDATE_DAYS' to cache
13:16:28 [Q] WARNING reincarnated worker Process-1:4 after timeout
13:16:28 [Q] INFO Process-1:12 ready for work at 103
13:16:28 [Q] INFO Process-1:12 processing [dakota-victor-massachusetts-white]
Registering triggered event: 'common_inventreesetting.saved'
Saving setting 'InvenTreeSetting:ENABLE_PLUGINS_EVENTS' to cache
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1358: RuntimeWarning: DateTimeField PartPricing.updated received a naive datetime (2023-01-03 00:00:00) while time zone support is active.
warnings.warn("DateTimeField %s.%s received a naive datetime "
13:16:29 [Q] INFO Process-1:12 processing [asparagus-artist-stairway-victor]
Registering triggered event: 'common_inventreesetting.saved'
13:16:31 [Q] INFO Processed [maine-mexico-magazine-asparagus]
13:16:33 [Q] INFO Processed [dakota-victor-massachusetts-white]
13:16:33 [Q] WARNING reincarnated worker Process-1:2 after timeout
13:16:33 [Q] INFO Process-1:13 ready for work at 107
13:16:33 [Q] INFO Processed [asparagus-artist-stairway-victor]
13:16:33 [Q] INFO Processed [robert-pizza-fifteen-white]
13:16:53 [Q] INFO Process-1:11 processing [south-dakota-quiet-louisiana]
13:16:53 [Q] INFO Process-1:12 processing [arizona-crazy-avocado-iowa]
13:16:53 [Q] INFO Process-1:10 processing [georgia-fifteen-kansas-pasta]
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Backing Up Database: inventree
Backing Up Database: inventree
Backing Up Database: inventree
13:16:55 [Q] INFO Process-1:13 processing [video-maine-mirror-chicken]
Saving setting 'InvenTreeSetting:PRICING_UPDATE_DAYS' to cache
/root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1358: RuntimeWarning: DateTimeField PartPricing.updated received a naive datetime (2023-01-03 00:00:00) while time zone support is active.
warnings.warn("DateTimeField %s.%s received a naive datetime "
13:16:55 [Q] INFO Processed [video-maine-mirror-chicken]
Writing file to default-da5c4ce7ff7c-2023-02-02-131654.psql.bin.gz
Writing file to default-da5c4ce7ff7c-2023-02-02-131654.psql.bin.gz
Writing file to default-da5c4ce7ff7c-2023-02-02-131654.psql.bin.gz
Writing file to da5c4ce7ff7c-2023-02-02-131656.tar.gz
Writing file to da5c4ce7ff7c-2023-02-02-131656.tar.gz
Writing file to da5c4ce7ff7c-2023-02-02-131656.tar.gz
13:18:24 [Q] WARNING reincarnated worker Process-1:10 after timeout
13:18:24 [Q] INFO Process-1:14 ready for work at 112
13:18:24 [Q] WARNING reincarnated worker Process-1:12 after timeout
13:18:24 [Q] INFO Process-1:15 ready for work at 113
13:18:29 [Q] INFO Processed [south-dakota-quiet-louisiana]
13:18:54 [Q] INFO Process-1:13 processing [arizona-crazy-avocado-iowa]
13:18:54 [Q] INFO Process-1:14 processing [georgia-fifteen-kansas-pasta]
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Saving setting 'InvenTreeSetting:INVENTREE_BACKUP_ENABLE' to cache
Backing Up Database: inventree
Backing Up Database: inventree
Writing file to default-da5c4ce7ff7c-2023-02-02-131855.psql.bin.gz
Writing file to default-da5c4ce7ff7c-2023-02-02-131855.psql.bin.gz
Writing file to da5c4ce7ff7c-2023-02-02-131855.tar.gz
Writing file to da5c4ce7ff7c-2023-02-02-131855.tar.gz
13:19:43 [Q] INFO Processed [arizona-crazy-avocado-iowa]
13:19:47 [Q] INFO Processed [georgia-fifteen-kansas-pasta]
Activity
SchrodingersGat commentedon Feb 1, 2023
@MR-DOS thank you for reporting this, this is a big problem!
The "every two minutes" seems to be a result of the "retry" time for the background worker:
InvenTree/InvenTree/InvenTree/settings.py
Line 597 in 4f029d4
I think that the sequence of events here is that:
However the software is configured for 5x maximum attempts on any given task, is this being observed here? Are you seeing "infinite backup attempts" occurring every 2 minutes forever?
MR-DOS commentedon Feb 2, 2023
Hi, yes. It runs in infinite loop which is why it generated 500+GB of data for me.
Also, it's not limited to setup. The server normally runs while it does this in parallel.
SchrodingersGat commentedon Feb 2, 2023
A closer inspection of the django-q documentation shows that the
max_attemptsparameter is the one which actually controls the total number of retries (set to0- infinite retries)..miggland commentedon Feb 2, 2023
I checked, and the backup on my system also creates too many files, but is not running on an infinite loop.
File list:
Logs during the time of creation of backups: