Commit Graph
100 Commits
Author SHA1 Message Date
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 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
tcely 33760ffc82 Update calls of save_all_media_for_source 2025-07-04 16:55:47 -04:00
tcely fa0d5c1d10 Don't delete save_all_media_for_source tasks anymore 2025-07-04 15:27:19 -04:00
tcely ce2a8d756c Update signals.py 2025-07-04 14:57:30 -04:00
tcely d5edc33955 Convert save_all_media_for_source task 2025-07-04 14:52:32 -04:00
tcely 7b9c30180a Do not try to delete wait_for_media_premiere tasks
If the media is missing, then it will remove itself when it eventually executes.

This task is mostly informational anyway.
2025-07-04 14:15:41 -04:00
tcely 04db38cf9e fixup: clean up the unused variable 2025-07-04 14:08:40 -04:00
tcely ce9eabd5d3 Make wait_for_media_premiere a placeholder that might never execute 2025-07-04 13:50:00 -04:00
tcely 0a36c3a791 Check for updates to verbose_name for locked tasks 2025-07-04 01:21:09 -04:00
tcely 16008cf7b1 scheduled_qs now also includes running and errors 2025-07-04 00:24:15 -04:00
tcely 0a205231c9 Add the seconds to the float, not a datetime.timedelta 2025-07-03 23:53:54 -04:00
tcely 5106f276c5 Use add_to_task again now that everything uses TaskHistory 2025-07-03 23:36:04 -04:00
tcely 75ef10ed1f Use the same filter as the dashboard 2025-07-03 23:00:50 -04:00
tcely 1a61e3882a Fallback to name when verbose_name is unavailable 2025-07-03 22:47:47 -04:00
tcely b814614eb3 Display the task_id for now 2025-07-03 22:18:36 -04:00
tcely ed7b53b6a6 Update tasks.html 2025-07-03 21:59:09 -04:00
tcely 6c860387a2 Update tasks-completed.html 2025-07-03 21:03:39 -04:00
tcely 815dcb99e8 fixup: remove unused import 2025-07-03 20:58:16 -04:00
tcely 898f1d42cf Display running and completed tasks from TaskHistory 2025-07-03 20:51:20 -04:00
tcely cffa34774f Use the new scheduled_at on the tasks page 2025-07-03 20:02:04 -04:00
tcely c8dfcb1983 Populate the new TaskHistory fields from background_task 2025-07-03 19:10:32 -04:00
tcely df3616dd03 Populate the new TaskHistory fields from huey 2025-07-03 18:13:34 -04:00
tcely d195f43942 Create 0002_taskhistory_elapsed_taskhistory_scheduled_at_and_more.py 2025-07-03 18:00:15 -04:00
tcely b5893b4604 Add elapsed and scheduled_at to TaskHistory 2025-07-03 17:44:29 -04:00
tcely 1639b60e18 Use common.timestamp for cache-huey.py 2025-07-03 15:52:54 -04:00
tcely e7f2ff064d Use common.timestamp for cache-filesystem.py 2025-07-03 15:46:47 -04:00
tcely 6d6a4d4ba5 Convert Huey eta to UTC always 2025-07-03 14:56:18 -04:00
tcely ca09e7a6be Handle naive datetime.datetime also 2025-07-03 14:46:20 -04:00
tcely 064b089266 Update tasks.html 2025-07-03 12:57:25 -04:00
tcely 7b196fa34c Set end_at to the scheduled eta 2025-07-03 07:56:47 -04:00
tcely 407cace19b Include errors which have set start_at already 2025-07-03 06:19:46 -04:00
tcely 8db622f5b8 task_task_failed still uses old class 2025-07-03 05:37:36 -04:00
tcely f09a34f1e1 add_to_task still uses the old class 2025-07-03 05:32:39 -04:00
tcely 7b897fb7a8 Adjust map_task_to_instance for TaskHistory 2025-07-03 05:29:38 -04:00
tcely eebdfca824 Display scheduled tasks using TaskHistory 2025-07-03 04:41:24 -04:00
tcely ef0a3d9e82 fixup: do not set start_at before it was started 2025-07-03 03:54:42 -04:00
tcely 91599cb53f Add a new TaskHistory row when a task is created 2025-07-03 03:51:15 -04:00
tcely 8dc212496d fixup: use end_at with TaskHistory 2025-07-03 03:27:16 -04:00
tcely c8e7aede03 Add and use the get_waiting_tasks function 2025-07-03 03:17:40 -04:00
tcely b162ba55a6 Update the dashboard to use TaskHistory 2025-07-03 03:00:26 -04:00
tcely 1bfcc07d07 Merge branch 'meeb:main' into patch-2 2025-07-03 00:24:46 -04:00
tcely 3095180b25 Update other-database-backends.md
We also should stop the `huey-*` consumer services.
2025-07-02 23:30:50 -04:00
tcely 6f8fd8581d Add SQLite configuration tweaks 2025-07-02 21:03:04 -04:00
tcely 2d377153e7 Do not try to use empty task_obj.args 2025-07-02 06:40:30 -04:00
tcely 5ec14cad58 fixup: typo 2025-07-02 04:12:58 -04:00
tcely a7a0df2802 Skip keys that don't return a dictionary 2025-07-02 04:06:30 -04:00
tcely 8353c18f51 Not a Django model, so id not pk 2025-07-02 04:00:00 -04:00
tcely 152cccd33c Clean up old task_history 2025-07-02 02:07:35 -04:00
tcely 8a28a851c5 Add created / modified to task_history 2025-07-02 02:07:31 -04:00
tcely 60a370ac3b Clean up TaskHistory also 2025-07-02 01:57:13 -04:00
tcely f38134a264 Use key and name for verbose_name 2025-07-01 23:01:03 -04:00
tcely 15111d89fe Add completed tasks to TaskHistory 2025-07-01 22:52:25 -04:00
tcely bff224491f Set a default verbose_name value 2025-07-01 22:18:44 -04:00
tcely 76ca2c3aff Use the renamed field 2025-07-01 21:44:07 -04:00
tcely 21c8b16b82 Huey._tasks_in_flight is only available in the consumer 2025-07-01 21:41:30 -04:00
tcely c5856aa749 Set failed_at 2025-07-01 21:26:01 -04:00
tcely 7d1cb397aa fixup: ruff check complaints 2025-07-01 17:08:49 -04:00
tcely 15db31ba84 Add the task_task_started receiver function 2025-07-01 16:52:59 -04:00
tcely 3c9e055199 Add a to-do for changes to signals.py 2025-07-01 14:58:01 -04:00
tcely 54e73ad550 Store the repr instead of serializing various objects 2025-07-01 14:25:20 -04:00
tcely 50fdf763db Merge branch 'meeb:main' into patch-2 2025-06-30 22:19:51 -04:00
tcely ace6c4e870 Always store signal datetime as UTC 2025-06-30 16:03:42 -04:00
tcely 91c8e060e6 Nibble away at the free pages with every connection 2025-06-30 15:32:39 -04:00
tcely 5756f321d4 fixup: use the correct field 2025-06-30 14:32:32 -04:00
tcely 0b4a784d66 fixup: list takes a single positional argument 2025-06-30 14:29:27 -04:00
tcely a267fe3ca2 Use a much longer timeout 2025-06-30 13:34:38 -04:00
tcely dd7f59569a Update huey.py 2025-06-30 05:34:02 -04:00
tcely 4eba296a35 Write TaskHistory rows 2025-06-30 05:30:51 -04:00
tcely 4ac1d793ad Merge branch 'meeb:main' into patch-16 2025-06-30 03:15:55 -04:00
tcely efe34c7a28 Create 0001_initial.py 2025-06-30 03:15:38 -04:00
tcely 7ee5ce540f Update __init__.py 2025-06-29 14:21:32 -04:00