Skip to content

Instantly share code, notes, and snippets.

@Jongbhin
Last active January 5, 2021 04:11
Show Gist options
  • Save Jongbhin/d09f3a5e7ffe6e982068bc5dd218d44f to your computer and use it in GitHub Desktop.
Save Jongbhin/d09f3a5e7ffe6e982068bc5dd218d44f to your computer and use it in GitHub Desktop.
[Clipboard] #clipboard
split_cmd = "split -n l/{} -d -a 2 {} meta_input".format(file_num, file_path)
nohup /app/puser/catalog_preprocessor/src/run.sh today 1002,1003,153118,1001,1004,153106,1006,1007,153108,1531201,1005,153111,153112 &> /app/puser/catalog_preprocessor/log/run.log.`date +"\%Y\%m\%d"` &
신규생성된 상품은 일주일간 추가매칭에서 제외한다.
신규생성이 존재하면 추가매칭은 제거한다.
11->12일 증분 결과
puser@GPUCLUSTERb-gpu05:/nfs_gpu_cluster/catalog/data/catalog_auto/03_join_prd_ctlg$ grep 3047709328 1004*
1004.tsv:3047709328 쌍꺼풀 만들기 실리콘푸셔_7875 1004 1001362 1011104 /pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg 38340033@$39702045@$41944919
43872405@$41944919@$39702045@$38340033@$28142062
3
1001362@$1019467@$1059488
1002187@$1019471@$1059490@$1059508@$1059509
1011104@$1059183
top5
- 카탈로그에서 추가매칭만 제외
- 없으면 row도 제외
추가매칭
- elif -> if로 변경
1004만 11-> 12일 정보로 확인
전체를 11 -> 오늘로 증분
puser@GPUCLUSTERb-gpu04:/nfs_gpu_cluster/catalog/data/catalog_auto$ grep 3047709328 catalog_auto_applied_prd_no
3047709328 28142062
3047709328 43872405
queue item : ('17821655', [16200, 183, 0, 20130330, 0, 1163389942, '2967'])
1004.prev_data.tsv.20201208:{"3047709328": {"img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg", "ctlg_no_list": "38340033@$39702045@$41944919", "prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875"}}
1004.prev_data.tsv.20201209:{"3047709328": {"prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875", "img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg", "ctlg_no_list": "38340033@$39702045@$41944919"}}
1004.prev_data.tsv.20201210:{"3047709328": {"prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875", "ctlg_no_list": "38340033@$39702045@$41944919", "img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg"}}
1004.prev_data.tsv.20201211:{"3047709328": {"ctlg_no_list": "38340033@$39702045@$41944919", "img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg", "prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875"}}
1004.prev_data.tsv.20201212:{"3047709328": {"img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg", "prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875", "ctlg_no_list": "38340033@$39702045@$41944919@$43872405"}}
1004.prev_data.tsv.20201213:{"3047709328": {"img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg", "prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875", "ctlg_no_list": "38340033@$39702045@$41944919"}}
1004.prev_data.tsv.20201214:{"3047709328": {"ctlg_no_list": "38340033@$39702045@$41944919", "prd_nm": "쌍꺼풀 만들기 실리콘푸셔_7875", "img_url": "/pd/20/7/0/9/3/2/8/NpUnV/3047709328_L300.jpg"}}
/app/puser/catalog_preprocessor/src/run.sh 20201207 1001 &> /app/puser/catalog_preprocessor/log/run.log.`date +"\%Y\%m\%d"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment