Closed kimalec closed 9 years ago
원인 : posting이 실패하는 경우에, retry queue에 존재하게 되고, 새글을 찾아서 갱신하는 경우에도 실패한 post을 찾아내서 posting을 시도하게 되면서, 두 번 들어가게 된다.
개선이 필요한 포인트 _retryPostings에서도 callback을 연결하여 순차처리되도록 개선 필요 _retryPosting에도 userId표시 _cbAddPostInfoToDb 에서 DB에 추가될 postinfo log 출력
차라리 retryPosting을 없애고, 들어가지 않는 글을 찾아서 추가 하는 부분을 사용하는 것이 좋을 것으로 판단됨.
새 글 정보를 가지고 올때 아래와 같은 에러가 발생했지만, 증상과는 상관 없는듯
facebook이 postInfo에 없는 것을 확인.
facebook에 새글 등록
kakao stroy에 postInfo확인
kakao stroy에 posting
kakao stroy에 posting 중에 timeout이 발생함.
timed out error로 인하여, _retryPostings에서 한번더 posting하지만 timed out 발생함.
다음 task에서 facebook에서 새로운 post가 발견됨.(실제로는 twitter를 통해 등록된 글)
새글 등록?
_retryPostings에서 kakao에 새글 등록