-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the SDK V3 Style #794
Use the SDK V3 Style #794
Conversation
schedule_handler.js
Outdated
@@ -1,11 +1,12 @@ | |||
var AWS = require('aws-sdk'); | |||
import { ECSClient, RunTaskCommand } from "@aws-sdk/client-ecs"; | |||
|
|||
var util = require('util'); | |||
|
|||
exports.handler = function(input, context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exports.handler = function(input, context) { | |
exports.handler = async function(input, context) { |
Since there's an await
down below, we'll need this to be async
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Thanks
@essa can you help us review this PR, please? |
barcelona.yml
Outdated
# 10AM JST every week day | ||
- schedule: cron(0 1 ? * MON-FRI *) | ||
command: bin/chaos | ||
scheduled_tasks: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are removing all scheduled task now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, sorry let me remove that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidsiaw
LGTM if you are removing scheduled tasks
The new node version uses SDK V3. This comes with a new import method.