fix task name, filter suspendable/resumable tasks, add ssl verify option #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Thanks for a great solution for handling my lengthy hyper backup tasks.
This PR contains 2 fixes and 1 new feature:
Fix 1:
Field 'task_name' was changed to 'name' in Synology API. Fix reflects that change.
Fix 2:
When having multiple tasks, resuming and later suspending a completed task results in the tasks state rendered as failure. I therefore implemented a filter in cron methods to filter, to resume only suspended tasks and to suspend only running task.
Feature 1:
Added option to skip SSL verify to cover the use-case case of accessing the DSM by local ip address and having HTTP->HTTPS redirect enabled.
If you would be so kind to rebuild the docker image with the changes above, i would be extremely grateful.
Cheers,
Tomas