Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

i am getting stuck at only this step my pipeline is running but it is not going for next step in my

Siddhant Pandey September 13, 2023

i am getting stuck at only this step my pipeline is running but it is not going for next step in my pipeline how can i run them in non interactive mode.

image: python:3.10

pipelines:
default:
- step:
name: Building
script:
- apt-get update && apt-get install -y zip
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
- python main.py
- step:
name: Deploying the app
deployment: Production
script:
- pipe: atlassian/rsync-deploy:0.9.0
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_SERVER
REMOTE_PATH: $REMOTE_PATH
LOCAL_PATH: '.'
1.png
4.png
2.png

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2023

Hello @Siddhant Pandey and thank you for reaching out to Community!

From the screenshots you shared, it seems like your Python program is starting a service, and this service is running on a loop and not returning an exit code, which will keep the pipeline in the Running state. The way that pipelines identify when a command end is by verifying the exit code. If the command you are executing is running on a loop, it will not return an exit code and the pipeline will continue its execution.

In this case, you might want to check if the service you are starting (it seems to be Uvicorn) has an option available to run in detached mode, where the service will start and keep running in the background, while the pipeline can continue to the next commands.

I found the following thread that might be of help, which has a discussion on how to run Uvicorn in detached mode:

Thank you, @Siddhant Pandey !

Patrik S

Siddhant Pandey September 15, 2023

yes you are right i have passed reload = true in my main.py file i will may that could be the issue.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events