Skip to content
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

Start more than one task via REST API #183

Closed
mountaindude opened this issue Aug 29, 2021 · 0 comments
Closed

Start more than one task via REST API #183

mountaindude opened this issue Aug 29, 2021 · 0 comments

Comments

@mountaindude
Copy link
Collaborator

mountaindude commented Aug 29, 2021

Accept an array (JSON format) of multiple tasks that should all be started.

  • Verify that all tasks exists before starting them, report missing tasks to the caller.
  • Option for failing completely if a single task doesn't exist, or start all existing tasks and report the missing ones to the caller.
  • Accept several ways of identifying what tasks should be started. These should be additive, i.e. the union of tasks matching either of the options below. Array of
    • taskIds
    • tags
    • custom properties

This would require a modification of the current endpoint for starting tasks, /v4/reloadtask/{taskId}/start.
A special taskId of ´-´could be used to tell Butler that all info should be taken from the body instead of the URL.
That would also allow for future enhancements, as the body can be arbitrarily extended.

@mountaindude mountaindude added this to the 6.1 milestone Oct 14, 2021
@mountaindude mountaindude moved this from To do to In progress in Butler general development Oct 14, 2021
@mountaindude mountaindude moved this from In progress to Done in Butler general development Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant