-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Running 'background' task hangs #162
Comments
Hi @orthomind, Maybe This can either be a bug on CockroachDB, on mvdan/sh or Task itself. Can you please try running this command on Make and Gosh? You'd be helping me debug this issue. Also, what's your Task version and OS? |
Ping @orthomind |
Hi, sorry, I will try to check these things out for you within a week or so. |
Hey @orthomind I'm attempting to assist @andreynering in clearing out some bugs. Is this still and issue with the current version? If so, can you include the Taskfile.yml that you're using, as well as the operating system that you're on so I can attempt to replicate it? If not, can we close this issue? |
Closing for lack of feedback. If you still have updates, feel free to comment and we may reopen the issue. |
I'm having this issue.
Trying to start a server process in background.
#!/bin/bash
nats-server --log bin/nats-server.log& echo "PID $!"
run_nats_server:
deps:
- install_nats
- install_nats_server
status:
- nats server check connection
cmds:
- echo "Starting nats-server"
- |
PATH="bin{{.PD}}$PATH"
echo '#!/bin/bash
nats-server --log bin/nats-server.log& echo "PID $!"' > bin/nats-server.sh
chmod +x bin/nats-server.sh
bash -c 'bin/nats-server.sh'
hangs both in Windows and Linux |
Apparently, running the task cmd in background as well as the underlying bash one, with a cmds:
- echo "Starting nats-server"
- |
PATH="bin{{.PD}}$PATH"
bash -c 'nats-server --log bin/nats-server.log& echo "PID $!"'& sleep 1
|
Hi,
I'm trying to create a task to start up a cockroachdb instance. One of the commands I use is the actual running of the instance:
The --background flag is described as follows:
Unfortunately, when I use this flag, Task does not seem to progress beyond this step. It's as though the cockroachdb instance never returns to shell. However, when I run this command in the shell manually, it works as expected.
Do you know why this may not work when I use it in task, while it works as expected outside of that?
Thanks!
The text was updated successfully, but these errors were encountered: