New issue
Advanced search Search tips

Issue 906747 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Swarming: add new bool: TaskProperties.release_bot_after_task

Project Member Reported by mar...@chromium.org, Nov 19

Issue description

Use case:
Destructive tests

Behavior:
- When set, the TaskToRun for the corresponding TaskSlice can only reaped by a bot managed by MP.
- When set, immediately after the task is completed, the bot is deleted by Swarming itself. The deletion causes MP to reap it and the VM is recycled.

Advantages:
- Simpler to implement than  issue 669660 .
- Does not enforce that the bot itself is single use, making better use of the whole fleet; a bot could run a few normal task, then a destructive test.
- The reverse can be true, a subset of the fleet can be assigned to destructive tasks, but that's not an hard requirement by design.
- Does not require MP changes, it's a pure Swarming only implementation that is easy to understand.
- The task may or may not also be marked as idempotent. That's up to the user.

 
Cc: smut@chromium.org estaab@chromium.org mar...@chromium.org
 Issue 669660  has been merged into this issue.
Cc: -iannucci@chromium.org -smut@chromium.org -mar...@chromium.org iannu...@google.com
Once go/remove-mp is implemented, Swarming will not be able to tell where a bot came from, since all MP-related code will be removed from Swarming.
Ok, we should discuss about how this could be implemented then. Also it'd be nice to keep the "recycle bot when it's shutdown + deleted" behavior.

Sign in to add a comment