The Cloud Built for AI
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
runpod: {
type: "app",
app: "runpod",
}
},
async run({steps, $}) {
const data = {
"query": `query GpuTypes { gpuTypes { id displayName memoryInGb } }`,
}
return await axios($, {
method: "post",
url: `https://api.runpod.io/graphql`,
headers: {
"Content-Type": `application/json`,
},
params: {
api_key: `${this.runpod.$auth.api_key}`,
},
data,
})
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.