Skip to content

Commit 4872bfd

Browse files
committed
It's OK now. Schedule is rate 24 hours.
1 parent ed260d5 commit 4872bfd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ node_js:
1010
- '4.3.2'
1111

1212
before_install:
13-
- npm install -g yarn serverless
13+
- npm install -g serverless
1414
install:
1515
- yarn install
1616

functions/clean_ecr_images.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const cleanEcrImages = require('./clean_ecr_images/index');
22

33
module.exports.handle = (event, context, callback) => {
44

5+
console.log(event);
6+
57
cleanEcrImages(event).then(() => {
68
callback(null, {});
79
}).catch(e => {

serverless.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ functions:
2727
age: 2
2828
repositoryName: 'micropost/frontend'
2929
- schedule:
30-
rate: rate(1 minute)
30+
rate: rate(24 hours)
3131
enabled: true
3232
input:
3333
age: 2

0 commit comments

Comments
 (0)