자정에 한 번만 실행되어야 하는 Lambda 함수가 세 번 실행됐다.
Lambda Schedule -> S3 upload -> RDS insert 이 프로세스에서 세 번 실행된 걸 확인한 것은 RDS.
S3 를 추적해 보았더니 역시나 세 번의 upload.
CloudWatch 의 로그를 보았더니 Lambda 세 번 실행.
왜 세 번 실행이 되었을까...
00:01:21 START RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Version: $LATEST
00:01:36 END RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea
00:01:36 REPORT RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Duration: 15002.00 ms Billed Duration: 15000 ms Memory Size: 512 MB Max Memory Used: 98 MB
00:01:36 2017-05-11T00:01:36.076Z f647b0b7-35dc-11e7-b221-9f353cc1b3ea Task timed out after 15.00 seconds
00:02:42 START RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Version: $LATEST
00:02:57 END RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea
00:02:57 REPORT RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Duration: 15001.92 ms Billed Duration: 15000 ms Memory Size: 512 MB Max Memory Used: 81 MB
00:02:57 2017-05-11T00:02:57.392Z f647b0b7-35dc-11e7-b221-9f353cc1b3ea Task timed out after 15.00 seconds
00:04:59 START RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Version: $LATEST
00:05:13 # finish
00:05:13 END RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea
00:05:13 REPORT RequestId: f647b0b7-35dc-11e7-b221-9f353cc1b3ea Duration: 14197.01 ms Billed Duration: 14200 ms Memory Size: 512 MB Max Memory Used: 90 MB
time out 문구가 눈에 띈다.
15 초로 설정되어 있는건 내가 걸어놨으니 그렇다 치고, S3 upload 는 캔슬되었어야지... 어이가 없네?
timeout 설정 늘려서 해결.
WRITTEN BY
- 손가락귀신
정신 못차리면, 벌 받는다.