Skip to content

Commit d586fef

Browse files
committed
Update pm2 configs
1 parent d50b30c commit d586fef

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

cfg/loop_import_module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loop_import_module",
3-
"script": "run_import.py",
4-
"cwd": "/data/python-mapswipe-workers/import_module",
3+
"script": "./import_module/run_import.py",
4+
"cwd": "/data/python-mapswipe-workers/",
55
"exec_interpreter": "/data/environments/mapswipe_workers/bin/python3",
66
"log_date_format": "YYYY-MM-DD HH:mm Z",
77
"autorestart": true,

cfg/loop_transfer_results.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "loop_transfer_results_module",
3-
"script": "transfer_results.py",
4-
"cwd": "/data/python-mapswipe-workers/transfer_results_module",
3+
"script": "./transfer_results_module/transfer_results.py",
4+
"cwd": "/data/python-mapswipe-workers",
55
"exec_interpreter": "/data/environments/mapswipe_workers/bin/python3",
66
"log_date_format": "YYYY-MM-DD HH:mm Z",
77
"autorestart": true,
88
"args": ["-l", "-m=1", "-s=60"]
9-
}
9+
}

cfg/loop_update_module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loop_update_module",
3-
"script": "run_update.py",
4-
"cwd": "/data/python-mapswipe-workers/update_module",
3+
"script": "./update_module/run_update.py",
4+
"cwd": "/data/python-mapswipe-workers",
55
"exec_interpreter": "/data/environments/mapswipe_workers/bin/python3",
66
"log_date_format": "YYYY-MM-DD HH:mm Z",
77
"autorestart": true,

update_module/update_project_contributors.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,11 @@
1010
sys.path.insert(0, '../utils/')
1111

1212
import logging
13-
import numpy as np
1413
import os
15-
import threading
1614
import time
17-
from queue import Queue
18-
19-
import requests
20-
21-
from auth import firebase_admin_auth
22-
from auth import mysqlDB
2315

16+
from cfg.auth import firebase_admin_auth
17+
from cfg.auth import mysqlDB
2418

2519

2620
import argparse

update_module/update_project_progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import time
1717
from queue import Queue
1818
import requests
19-
from auth import firebase_admin_auth
19+
from cfg.auth import firebase_admin_auth
2020
import argparse
2121

2222

0 commit comments

Comments
 (0)