Skip to content

Commit 18f7ccb

Browse files
authored
Update readme.md
1 parent 29b23bb commit 18f7ccb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

transfer_results_module/readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ pm2 list
2929
tail -100 /data/python-mapswipe-workers/transfer_results_module/transfer_results.log
3030
```
3131

32+
## Test manually
33+
After starting the transfer results script using pm2 process manager you can type `pm2 logs {id}` to get the logs of your specific task. The ouput in pm2 should look like this:
34+
```
35+
0|loop_tra | 2018-05-25 12:13 +00:00:
36+
0|loop_tra | ###### ###### ###### ######
37+
0|loop_tra | ###### iteration: 1 ######
38+
0|loop_tra | ###### ###### ###### ######
39+
0|loop_tra | opened connection to firebase
40+
0|loop_tra | downloaded all results from firebase
41+
0|loop_tra | wrote results data to results.json
42+
0|loop_tra | there are 23 results to import
43+
0|loop_tra | dropped raw results table
44+
0|loop_tra | Created new table for raw results
45+
0|loop_tra | copied results information to mysql
46+
0|loop_tra | inserted raw results into results table and updated duplicates count
47+
0|loop_tra | finished deleting results
48+
0|loop_tra | removed "results.json" file
49+
0|loop_tra | import finished and max iterations reached. sleeping now.
50+
```
3251

3352
## Tests using docker
3453
To run tests using docker, simply run the following commnands:

0 commit comments

Comments
 (0)