Skip to content

Instantly share code, notes, and snippets.

@colinking
Last active June 30, 2022 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colinking/b369befc01101825c8f445e9537b5af0 to your computer and use it in GitHub Desktop.
Save colinking/b369befc01101825c8f445e9537b5af0 to your computer and use it in GitHub Desktop.
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