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

Background task #1951

Open
alexec opened this issue Dec 12, 2024 · 1 comment
Open

Background task #1951

alexec opened this issue Dec 12, 2024 · 1 comment
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@alexec
Copy link

alexec commented Dec 12, 2024

I'd like a task to go into the background.

The use case I have is I'm running several tasks, some of which port forward from Kubernetes. I want the the dependent tasks to start only when the port is ready.

I don't think this is possible currently.

Note, I'm the author of https://github.com/kitproj/kit

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Dec 12, 2024
@trulede
Copy link

trulede commented Dec 15, 2024

A cmd that represents a bash while loop (while do done), with break condition (if then break), will solve your problem.

Or a watch task will also do the trick, if you are able to express your problem in such terms (e.g. write port state to a file).

IMO a simple bash one-liner will do the trick. Or if you are on windows, power shell has similar capabilities. No need to reinvent the wheel in Task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

3 participants