rivernews / media-literacy

Exploring possibilities of technology empowering media literacy
1 stars 0 forks source link

Sfn triggered twice even if only test invoke cronjob once #43

Closed rivernews closed 2 years ago

rivernews commented 2 years ago

Turns out cronjob may just only invoked once.

But the metadata S3 trigger called twice:

image

Interval around 40 seconds, actually quite a while. What is that metadata trigger? We should able to look at which metadata.json triggered each, closer lookout their cloudWatch:

Recall our cronjob has Saved landing page metadata to s3://**/daily-headlines/2021-08-20T22:34:47Z/metadata.json, so that's the first one no problem.

The question is why the second get triggered. We may look at its events and figure out why the trigger:

rivernews commented 2 years ago

If we're not ready, we shouldn't enable cronjob. Disable cronjob rate for now.