Last active
June 30, 2022 00:22
-
-
Save colinking/b369befc01101825c8f445e9537b5af0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import airplane, { TaskConfig } from 'airplane' | |
export const config: TaskConfig = { | |
slug: "hello_world", | |
name: "Hello World", | |
timeout: 3600, | |
constraints: { | |
my_constraint: "my_constraint_value" | |
}, | |
resources: { | |
my_resource: "my_resource_slug" | |
}, | |
env: { | |
MY_ENV_VAR: "MY_ENV_VAR_VALUE", | |
MY_CONFIG_ENV_VAR": airplane.configs.my_config | |
} | |
} | |
export default async function(params: { | |
// The name of the user to greet. | |
name: string | |
}) { | |
return `Hello, ${params.name}!` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment