Hi
We using Nomad and Docker for running tests
We are running a job with 2 tasks, SQL container and the tests cotnainer
The container stopped when the tests finish,
the alloc status became failed
How can I set the status of alloc to compted?
Thanks
Hi @StasMashkovich2020,
What is the job type parameter you have configured for this job? Assuming you expect this job to finish and not run continuously, I believe setting this value to batch
would get the results you desire.
Thanks,
jrasell and the Nomad team
It was ‘service’ after I changed it to batch, only the test container dead when the SQL still running
what I’m missing?
Hi @StasMashkovich2020,
Could you share the jobspec?
If I am correct in assuming you are using the SQL container to facilitate the running of the other task, I think it would be worth looking into the Nomad task lifecycle feature. I feel prestart
and sidecar = true
could be potential parameters which would be useful.
Thanks,
jrasell and the Nomad team