cirruslabs / cirruslabs/cirrus-cli

persistent worker: exit after a worker ran a single task

Open
#809 3 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
Go
Stars
285
Forks
34
PR merge metrics
No merged PRs in 30d

Description

To avoid keeping (possibly malicious) state after a task has finished, we'd like to stop and remove an ephemeral container/VM we use to run `cirrus worker run --token `. This could be done by exiting the process after a task finishes and the results are reported back to Cirrus. Having an option along the lines of `cirrus worker runonce` or `cirrus worker run --one-task` would be good. We'd make sure to spin up a new container/VM with a worker that registers for another single run after that.

I don't think this is currently supported, or am I missing something. Do you see any problems with this approach (e.g. churn on your persistent runner registration interface)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.