Your task for "Application Start" hook requires to be finished after it start the application service.
For the uWSGI server that you use, it can be run through service manager like systemd. You should make the service to be stopped before the installation and start the service again after the deployment.
Please check following uWSGI document for more information.
Ruby version mismatch while deploying Rails App with CodeDeploy and CodePipeline Scripts on Ubuntu 20.0 EC2asked 3 months ago
S3 bucket access on EC2 Instance using boto3Accepted Answerasked 5 months ago
Lightsail Codepipeline/Codedeploy/Codecommit Integration Failingasked 2 years ago
Codepipeline/deploy, application revision onto EC2asked a day ago
Unable to Add Github Connection in CodeDeployasked 3 months ago
Deploy only a subset of source using CodeDeploy S3 providerAccepted Answerasked 9 months ago
CodeDeploy old versions on EC2 instancesasked 3 months ago
Types of command to start an application using CodeDeployasked 7 months ago
How to start a long running process using AWS CodeDeploy hooks?asked 2 months ago
Is It Possible to CodeDeploy to an EC2 Instance In A Different Regionasked 7 months ago