Eggington
Eggington
WWindmill
Created by Eggington on 12/19/2024 in #help
Instance SMTP Usage
Per the docs, it looks like the only demo'd usage of the instance SMTP is for sharing invite emails. Can these instance SMTP settings be accessed to send critical alerts as well? Ideally via built-in windmill support in a custom error handling script for schedules.
3 replies
WWindmill
Created by Eggington on 12/19/2024 in #help
Croner Day of Week Index Inconsistency
No description
9 replies
WWindmill
Created by Eggington on 12/16/2024 in #help
Type Error in Flow Dynamic Inputs
No description
6 replies
WWindmill
Created by Eggington on 12/3/2024 in #help
error: Top-level await promise never resolved
I have a script using typescript deno that is querying a MongoDB atlas database. When either of the collection querying methods (.find or .findOne) take too long, windmill throws this error
error: Top-level await promise never resolved
await run();
^
at <anonymous> (file:///tmp/windmill/wk-default-e2b39e03fc37-DlTlU/01938d90-f94d-cd94-9e2a-95a351ab7870/wrapper.ts:29:5)
error: Top-level await promise never resolved
await run();
^
at <anonymous> (file:///tmp/windmill/wk-default-e2b39e03fc37-DlTlU/01938d90-f94d-cd94-9e2a-95a351ab7870/wrapper.ts:29:5)
I have already investigated storing my values in smaller documents and using .find() to query all of them or saving all as one document. Neither solves this issue, which brought me back to windmill. Also, i can successfully use these methods to query running a script locally on my machine. Below is the code:
import { connectToIFSINTDatabase } from './mongodb_helpers.ts'

export async function main(key: string) {
// the key should be a string formatted as such: yyyyMMdd-OH01 where OH is 2 digit state code and 01 is workstation number
const client = await connectToIFSINTDatabase()
try {
const messagesCollection = client.database("IFSINT").collection("messages");
const messages = await messagesCollection.find({debugKey: key}).toArray()
console.log(messages)
// const all_users = await users.find({ username: { $ne: null } }).toArray();
return
} catch (error) {
console.error("Error:", error);
} finally {
await client.close();
}
}
import { connectToIFSINTDatabase } from './mongodb_helpers.ts'

export async function main(key: string) {
// the key should be a string formatted as such: yyyyMMdd-OH01 where OH is 2 digit state code and 01 is workstation number
const client = await connectToIFSINTDatabase()
try {
const messagesCollection = client.database("IFSINT").collection("messages");
const messages = await messagesCollection.find({debugKey: key}).toArray()
console.log(messages)
// const all_users = await users.find({ username: { $ne: null } }).toArray();
return
} catch (error) {
console.error("Error:", error);
} finally {
await client.close();
}
}
2 replies
WWindmill
Created by Eggington on 8/23/2024 in #help
Returning a PDF from a webhook
I have a windmill endpoint that I am trying to return a pdf file from my connected azure blob container. I saw in the docs how I can set a custom response content-type via windmill_content_type, which I set to application/pdf, i set the result to my raw pdf bytes, but the response in the browser had no body content. Is there a way I can return a PDF from a windmill webhook?
13 replies