Commit Graph
100 Commits
Author SHA1 Message Date
tcely ef9715d380 Use connection pooling for PostgreSQL 2025-07-14 03:44:55 -04:00
tcely ff80c75d46 Enforce foreign key constraints 2025-07-14 01:12:30 -04:00
tcely 70465307ef fixup: set operator 2025-07-14 00:42:51 -04:00
tcely 4c877aad78 fixup: imports 2025-07-14 00:39:44 -04:00
tcely 17b98189b9 fixup: imports 2025-07-14 00:38:31 -04:00
tcely 56417485bf Override stoage_class 2025-07-14 00:35:54 -04:00
tcely 50e5f5d463 Manage the tasks databases better 2025-07-13 17:29:44 -04:00
tcely 06adeca92b Remove old database query 2025-07-13 15:04:10 -04:00
tcely 4b14925141 fixup: consistency 2025-07-13 14:55:02 -04:00
tcely 8196896369 fixup: remove an unused import 2025-07-13 14:21:50 -04:00
tcely 34e1ee2d02 Merge branch 'main' into tcely-download_media 2025-07-13 14:16:16 -04:00
tcely 5caca002e6 Provide all keys to format 2025-07-13 13:31:19 -04:00
tcely b60dbf6c9b Remove the to-do comment 2025-07-13 01:56:32 -04:00
tcely 8584731c0a Patch the new function also 2025-07-13 01:55:25 -04:00
tcely b517299fbe Add retry_fatal=True to the call in the new function 2025-07-13 01:51:57 -04:00
tcely 4396283ce1 Add the new original function 2025-07-13 01:49:55 -04:00
tcely 8713fa167a Remove a patch that will break in the next release 2025-07-13 01:11:16 -04:00
tcely 6611f5fe26 Update tests.py 2025-07-13 00:03:15 -04:00
tcely 8dc4fa8d42 Update signals.py 2025-07-12 23:53:59 -04:00
tcely cda2be6434 Update tests.py 2025-07-12 23:49:01 -04:00
tcely 3fb6ea9336 fixup: replace a removed variable 2025-07-12 23:38:35 -04:00
tcely 3d7d6b090c Do not try to delete the old task 2025-07-12 23:33:29 -04:00
tcely b8fcde61c8 Use TaskHistory for the get_media_thumbnail_task function 2025-07-12 23:16:37 -04:00
tcely ecdd47fe8a Update tests.py 2025-07-12 22:57:20 -04:00
tcely 5fc37c40db Update signals.py 2025-07-12 22:32:50 -04:00
tcely 57e6bec516 Remove download_media_thumbnail from tasks.py 2025-07-12 22:18:39 -04:00
tcely 2448f6e83b Use download_media_image for redownloading thumbnails 2025-07-12 22:12:32 -04:00
tcely e2154c8058 Use download_media_image function in Media.copy_thumbnail 2025-07-12 21:37:39 -04:00
tcely 11fdf114d9 Update views.py 2025-07-12 19:44:46 -04:00
tcely fd569b49a8 Update media.py 2025-07-12 19:23:07 -04:00
tcely 967f84d800 Update tests.py 2025-07-12 18:59:20 -04:00
tcely e7d606a7dc Use TaskHistory for the get_media_download_task function 2025-07-12 18:29:21 -04:00
tcely 5c6b95cf63 Remove download_media from tasks.py 2025-07-12 17:49:45 -04:00
tcely d26bc3192b Update signals.py 2025-07-12 16:44:01 -04:00
tcely 3a4f5437cf Use remove_duplicates for save_all_media_for_source tasks 2025-07-12 16:25:11 -04:00
tcely bd82ae5e3e Set verbose_name for refresh_formats tasks 2025-07-12 14:51:00 -04:00
tcely 84c57bcf30 Remove the on_executing_refresh_formats signal handler 2025-07-12 14:29:22 -04:00
tcely ad754374a9 Use remove_duplicates for refresh_formats tasks 2025-07-12 14:25:15 -04:00
tcely 8272f4a27c Create 0003_taskhistory_remove_duplicates.py 2025-07-12 14:11:22 -04:00
tcely 56660302c0 fixup: signals is the import in this file 2025-07-12 14:03:24 -04:00
tcely 3db95c3d36 Add the on_executing_remove_duplicates signal handler 2025-07-12 14:01:08 -04:00
tcely 3b92750923 Add the remove_duplicates field to TaskHistory 2025-07-12 13:34:34 -04:00
tcely f288ac013b Match name to name instead of a string 2025-07-12 04:09:57 -04:00
tcely 09d9cb03ed Revoke duplicate refresh_formats tasks 2025-07-11 18:56:00 -04:00
tcely 7dd7f46149 Clean up all the old tasks history results 2025-07-11 18:28:57 -04:00
tcely da18bfb9aa Check the new setting 2025-07-07 22:24:12 -04:00
tcely e78794a8ad Add YOUTUBE_DL_SKIP_UNAVAILABLE_FORMAT setting 2025-07-07 22:20:43 -04:00
tcely 84efd2b2e5 Retry the failed download with a new format_str 2025-07-07 22:05:19 -04:00
tcely 6515dcbc42 Raise the new FormatUnavailableError exception 2025-07-07 21:49:52 -04:00
tcely f52666722e Add some error classes for use later 2025-07-07 21:36:29 -04:00
tcely 1910a9eb7a Update media.py 2025-07-07 21:28:38 -04:00
tcely e91377f110 Add failed_format function 2025-07-07 21:18:18 -04:00
tcely 56ec90279b Tweaks to tasks for consistency 2025-07-07 04:19:22 -04:00
tcely a326c7567f Switch to the fork of my fork 2025-07-07 03:25:57 -04:00
tcely 5bfdb853d2 Releasing the lock to immediately take it again is a silly mistake 2025-07-07 03:21:26 -04:00
tcely 5897289f5e Show all the scheduled tasks when debugging 2025-07-06 22:54:41 -04:00
tcely 40b4aef990 Display the priority and queue data for scheduled tasks 2025-07-06 22:47:53 -04:00
tcely ff813cada1 We don't need to manage this lock manually 2025-07-06 21:40:01 -04:00
tcely 576daf07db fixup: indentation 2025-07-06 21:30:38 -04:00
tcely 64f4ea357d Better coordination between queues using locking 2025-07-06 20:27:45 -04:00
tcely f24c818d09 Rename the property to acquired to avoid upstream changes 2025-07-06 17:15:11 -04:00
tcely 1cef13d3a0 Add the TaskLock.locked property 2025-07-06 17:08:38 -04:00
tcely 671a755d53 Remove the v5 files 2025-07-06 10:29:55 -04:00
tcely e826737eac Upgrade to version 6 2025-07-06 09:48:50 -04:00
tcely 81b0f3697b Copy tubesync directory to an intermediate stage 2025-07-06 09:17:37 -04:00
tcely ccd756c664 Upgrade to the latest v5 scss files 2025-07-06 07:20:59 -04:00
tcely 841b408d02 Use the standard name for this icon 2025-07-06 07:14:37 -04:00
tcely d87b1272ea Upgrade to the latest v5 fonts 2025-07-06 07:01:11 -04:00
tcely 3873b11765 Add scheduled_at to the ordering 2025-07-06 03:30:18 -04:00
tcely 895bdc8617 Save Python some work sorting tasks 2025-07-06 03:17:44 -04:00
tcely 2c53ed49fc Do not schedule a duplicate save_all_media_for_source task 2025-07-05 09:02:31 -04:00
tcely a6be64ee5e Actually hold the lock while indexing 2025-07-05 08:53:00 -04:00
tcely a35fed5f1e Use bulk update on query set 2025-07-05 06:43:54 -04:00
tcely 103fa832a0 Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-fs-worker/type 2025-07-05 06:22:46 -04:00
tcely 02aa04f854 Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-fs-worker/down-signal 2025-07-05 06:22:35 -04:00
tcely 2393759206 Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-fs-worker/dependencies 2025-07-05 06:22:23 -04:00
tcely 8f2fddbb97 Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-fs-worker/run 2025-07-05 06:22:03 -04:00
tcely 58f162e6da Delete config/root/etc/s6-overlay/s6-rc.d/background-task-workers/contents.d/tubesync-fs-worker 2025-07-05 06:20:53 -04:00
tcely edb160737c Migrate away from the old filesystem queue 2025-07-05 06:17:43 -04:00
tcely 00ddb16353 Update signals.py 2025-07-05 06:06:09 -04:00
tcely f6a29ed238 Convert delete_all_media_for_source task 2025-07-05 05:55:10 -04:00
tcely d25c0d56b8 Use a datetime.datetime instead of a tuple 2025-07-05 04:53:25 -04:00
tcely 0af061ad78 fixup: remove get_source_check_task function 2025-07-05 04:11:12 -04:00
tcely 4dce224ce1 Merge branch 'main' into patch-4 2025-07-05 04:06:49 -04:00
tcely 4013d60a00 Adjust the running tasks query set
The 12 hour limit may not be needed, but my task history rows are odd from testing at the moment.
2025-07-05 03:40:24 -04:00
tcely 325c288c5a Do not block waiting for results
This can end up in a dead-lock situation where the execution slot is waiting on a task that is itself waiting on a chance to execute.
2025-07-05 02:50:11 -04:00
tcely 7de6f081a6 Use an already verified and extracted docker image for s6-overlay 2025-07-05 00:51:29 -04:00
tcely 129995c065 Remove a no longer needed wait_for_database_queue task 2025-07-04 22:55:33 -04:00
tcely 95c6640027 Adjust the call to TaskWrapper.schedule 2025-07-04 22:10:27 -04:00
tcely 90679802b2 Merge pull request #750 from tcely/patch-7
Simplify `map_task_to_instance`
2025-07-04 20:34:42 -04:00
tcely 1a6298641e Simplify map_task_to_instance a bit 2025-07-04 20:26:31 -04:00
tcely 1c5ae7b192 Switch to using the bound class 2025-07-04 19:47:09 -04:00
tcely d5bb2b750a fixup: remove the temporary variable 2025-07-04 19:39:36 -04:00
tcely 02b00175a7 Switch to TaskHistory.schedule in signals.py 2025-07-04 19:36:11 -04:00
tcely 7cf35323d0 Use TaskHistory.schedule method 2025-07-04 19:31:57 -04:00
tcely 39eec8ec5f Use the decorated delay setting when delay and eta are missing 2025-07-04 19:22:45 -04:00
tcely d30c18dfbb Add TaskHistory.schedule method 2025-07-04 19:05:53 -04:00
tcely a6ef84750c fixup: use the default delay 2025-07-04 18:53:00 -04:00
tcely f43a7f62c8 Use set_verbose_name in signals.py 2025-07-04 18:46:33 -04:00
tcely 100a31650c Accept unmapped tasks in all the sections 2025-07-04 18:20:25 -04:00