update DB table
This commit is contained in:
@@ -14,19 +14,19 @@ sudo chmod +x deploy.sh
|
||||
sudo ./deploy.sh
|
||||
```
|
||||
|
||||
### 3. Start the Application Services
|
||||
You should run these in the background or using a process manager like `pm2` or `systemd`.
|
||||
### 3. Manage Application Services
|
||||
The application and worker are managed by `systemd`. You can control them using the following commands:
|
||||
|
||||
**Start the API Server:**
|
||||
**Check Status:**
|
||||
```bash
|
||||
source venv/bin/activate
|
||||
uvicorn testarena_app.main:app --host 0.0.0.0 --port 8000
|
||||
sudo systemctl status testarena-app
|
||||
sudo systemctl status testarena-worker
|
||||
```
|
||||
|
||||
**Start the Background Worker:**
|
||||
**Restart Services:**
|
||||
```bash
|
||||
source venv/bin/activate
|
||||
python3 -m testarena_app.worker
|
||||
sudo systemctl restart testarena-app
|
||||
sudo systemctl restart testarena-worker
|
||||
```
|
||||
|
||||
---
|
||||
@@ -44,16 +44,16 @@ Navigate to:
|
||||
You should see an automatic directory listing of `/home/asf/testarena/`.
|
||||
|
||||
### 3. Test the Queue API
|
||||
Run the following `curl` command to queue a test task:
|
||||
Run the following `curl` command to queue a test task with branch information:
|
||||
```bash
|
||||
curl -X POST http://asf-server.duckdns.org:8080/api/queue \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"test_queue_001": [
|
||||
"source": "add_esp_idf_io_wrappers",
|
||||
"345": [
|
||||
"staging",
|
||||
{
|
||||
"task_1": "/home/asf/scenarios/test1.py",
|
||||
"task_2": "/home/asf/scenarios/test2.py"
|
||||
"5555": "application_layer/business_stack/actuator_manager/test/actuator_manager_init_test.test_scenario.xml"
|
||||
}
|
||||
]
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user