-
Notifications
You must be signed in to change notification settings - Fork 50
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
[FR] Ability to Cancel/Remove ongoing or scheduled tasks #307
Comments
Hey there - thanks for the report (: I'll definitely look into that indexing thing since it sounds like there may be a bug there, but based on what I'm seeing in the screenshot it looks like things may be working as expected. Fast indexing still runs a "slow" index periodically to make sure the app is kept up-to-date with any changes that fast indexing can't see (for instance, changing an old video from private to public). Both jobs in that screenshot are scheduled to be run in the future which is expected, but one thing that could help me confirm is going to that source > clicking "Actions" > "Copy JSON" > and pasting it here. In terms of giving the user control over the jobs, I'll consider it but I don't think that'll be feasible. The jobs often finish by calling other jobs and giving the user control without knowing that could leave downloads in a half-complete state, among many other issues. |
@kieraneglin thanks for your attention with a FR and my bug (which maybe isn't a bug haha). And thank you for the project, I came as a refugee from the tubearchivist, as I consider him a cannon for a fly (ES, Redis,... why? haha). I will send you the JSON of this source where I made the change between fast and slow. I also use Unraid. The JSON of Source: {
"id": 1,
"description": "O Canal MaxMRM GAMEPLAY é um canal dedicado ao mundo dos GAMES e feito para os gamers!
Com postagens frequentes contendo dicas, gameplays, reviews, tutoriais, easter eggs e muito mais.
O canal está em constante evolução trazendo cada vez mais conteúdo e buscando sempre o melhor resultado audiovisual. Sejam todos muito bem vindos e espero que gostem.
Me encontrem também nas redes sociais (abaixo):
",
"uuid": "9f50bbc5-0662-440b-98da-17afca2cd494",
"inserted_at": "2024-07-01T16:02:25Z",
"updated_at": "2024-07-13T00:11:25Z",
"media_profile": {
"id": 1,
"name": "TV Shows",
"inserted_at": "2024-07-01T15:55:36Z",
"updated_at": "2024-07-13T00:29:23Z",
"output_path_template": "/shows/{{ source_custom_name }}/Season {{ season_from_date }}/{{ season_episode_index_from_date }} - {{ title }} - [{{ id }}].{{ ext }}",
"preferred_resolution": "1080p",
"sponsorblock_categories": [
"sponsor",
"intro",
"selfpromo"
],
"sponsorblock_behaviour": "remove",
"download_thumbnail": true,
"embed_thumbnail": true,
"download_auto_subs": false,
"download_subs": true,
"embed_subs": true,
"sub_langs": "pt",
"download_metadata": false,
"embed_metadata": true,
"download_nfo": true,
"download_source_images": true,
"livestream_behaviour": "exclude",
"redownload_delay_days": 0,
"shorts_behaviour": "exclude"
},
"nfo_filepath": "/downloads/shows/MaxMRM GAMEPLAY/tvshow.nfo",
"original_url": "https://www.youtube.com/@MaxMRM",
"media_profile_id": 1,
"custom_name": "MaxMRM GAMEPLAY",
"collection_id": "UCJ8GQ_SNb-33m_BluT4TTlw",
"collection_name": "MaxMRM GAMEPLAY",
"collection_type": "channel",
"download_media": true,
"fast_index": true,
"banner_filepath": null,
"fanart_filepath": null,
"poster_filepath": "/downloads/shows/MaxMRM GAMEPLAY/poster.jpg",
"series_directory": "/downloads/shows/MaxMRM GAMEPLAY",
"download_cutoff_date": "2024-06-22",
"title_filter_regex": null,
"index_frequency_minutes": 43200,
"last_indexed_at": "2024-07-05T21:15:13Z",
"output_path_template_override": null,
"retention_period_days": null
} |
Thanks for that JSON! Based on that and your screenshots, it seems to me like the indexing behaviour is working as expected. Since both tasks in the screenshot are "Scheduled", that's a sign of when they will run, not that they are running. For the permissions issue, it'd definitely be worth uninstalling + reinstalling! I haven't heard of many issues with Unraid, especially since I made some of the changes in #106 but you may as well try. Just note that to properly uninstall you should be deleting the Anyway, let me know if that works out! |
Closing for now. Please re-open if there's anything related to the original issue that comes up! |
Is your feature request related to a problem? Please describe.
I recently made a change to a Source that had a task in progress (
Pinchflat.SlowIndexing.MediaCollectionIndexingWorker
), and it is a task that was taking a lot of time, as I was not using the API and the channel was very large. I changed from normal indexing to fast indexing (via API). After this change, the task never finished again.Now I have two tasks scheduled and listed in the source:
![image](https://private-user-images.githubusercontent.com/4449232/348425939-08ffe625-cce1-4201-9284-f89f980d9a8f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzc2MjYsIm5iZiI6MTczOTA3NzMyNiwicGF0aCI6Ii80NDQ5MjMyLzM0ODQyNTkzOS0wOGZmZTYyNS1jY2UxLTQyMDEtOTI4NC1mODlmOTgwZDlhOGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDUwMjA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDI4MWE3NTU3OWY0NTdjODQ0MGMyNGY0NWM3YTBiMjU2NDgwMDc0MzljNDVlNmNmYWVkMjZhMGUzZGY2ZTQ1OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.GEMUShpyHl58T7LnDoUdX5pT4S9lAIZOp-tf0p7Pf_A)
Describe the solution you'd like
One solution I imagine is being able to cancel, remove or restart these tasks.
But I don't know if it's the best solution. However, even if not, it would be good to give the user this ability to control the tasks.
The text was updated successfully, but these errors were encountered: