Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Support for Delete multiple task instances at a time #17

Open
sai-kat opened this issue Jun 7, 2019 · 1 comment
Open

Support for Delete multiple task instances at a time #17

sai-kat opened this issue Jun 7, 2019 · 1 comment

Comments

@sai-kat
Copy link

sai-kat commented Jun 7, 2019

This is how we do it right now:

def deleteBatchInstance(appName, instances, scale):
    ids = []
    for instance in instances:
        ids.append(instance['id'])
    params={'scale' : scale}
    killResponse=requests.post(url("/v2/tasks/delete"), data= json.dumps({'ids' : ids}), params=params, auth=httpBasicCreds, verify=httpsVerify)

In the current marathon java client, I can only delete one task at a time with .deleteAppTask() or all tasks of an app with .deleteAppTasks()

Can we get a method for deleting multiple tasks (yet not all) at a time?

@sai-kat
Copy link
Author

sai-kat commented Jun 26, 2019

Any active developer for the client? Can anyone help me out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant