EthanThatOneKid
EthanThatOneKid
DDeno
Created by .armaan.s. on 8/15/2024 in #help
Extract TypeScript types as JSON?
The doc subcommand is capable of generating documentation for a given module https://docs.deno.com/runtime/manual/tools/documentation_generator/#json-output
2 replies
DDeno
Created by Emil on 6/9/2024 in #help
Deno.cron scheduled to run once daily executes 6 times daily
In the meantime, you can maybe try to store the last time a cron job was invoked in deno kv to prevent messages from being sent in succession.
6 replies
DDeno
Created by Cedar on 11/10/2023 in #help
Any tutorial links to help me understand the Schedule string in Deno.cron()
5 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
cc @igorzi
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
Wow thank you for following up with me in DMs! At the time of opening this forum post something was fishy, but now all seems to be working as expected. For me, this forum post is resolved.
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
After some experimenting, it’s possible to establish a Deno Queue in the top-level scope, in an abstracted main function, and with an in-memory kv instance, all with and without delays. Here are the manually-testable examples: https://github.com/EthanThatOneKid/deno_queues/tree/main/examples
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
Thanks for the pointers. I’ll start on a little repro repo to help clear up any hurdles for myself and anyone else who it may be of use to.
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
No delivery. I’ll double check if it works locally.
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
if (import.meta.main) {
await main();
}

/**
* main is the entrypoint for the Shorter application command.
*/
export async function main() {
// Set up queue listener.
const kv = await Deno.openKv();
kv.listenQueue(makeTTLMessageListener(GITHUB_TOKEN));

// Start the server.
Deno.serve(
{ port: PORT, onListen },
makeHandler(kv),
);
}
if (import.meta.main) {
await main();
}

/**
* main is the entrypoint for the Shorter application command.
*/
export async function main() {
// Set up queue listener.
const kv = await Deno.openKv();
kv.listenQueue(makeTTLMessageListener(GITHUB_TOKEN));

// Start the server.
Deno.serve(
{ port: PORT, onListen },
makeHandler(kv),
);
}
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
It never executes. I tested with various delays.
14 replies
DDeno
Created by EthanThatOneKid on 10/4/2023 in #help
Deno Deploy Queue trouble in production
I have been referencing the recent blog post https://deno.com/blog/queues and all the links within it.
14 replies
DDeno
Created by EthanThatOneKid on 9/2/2023 in #help
Denoflare scheduled workers
6 replies
DDeno
Created by EthanThatOneKid on 9/2/2023 in #help
Denoflare scheduled workers
You are correct, it worked! I was able to create a working scheduled function. However, it required at least the adjacent fetch method. At least for me, I have been helped and my question is resolved <:party_deno:1035517691517218847>
6 replies
DDeno
Created by EthanThatOneKid on 9/2/2023 in #help
Denoflare scheduled workers
To clarify, are scheduled workers supported by Denoflare? If not, are scheduled workers within the scope of Denoflare?
6 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
Deno.Kv + Discord Application Commands = ❤️
51 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
I used code from the old Deno Deploy Discord Application Command tutorial which had Sift.
51 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
I cannot believe that simply removing the dependency I had on Sift actually fixed the problem! Thank you for looking into this for us!!
51 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
Should we wait to roll forward?
51 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
51 replies
DDeno
Created by Hiro on 4/26/2023 in #help
Property 'openKv' does not exist on type 'typeof Deno'. VSCode
I have unstable enabled in VSCode, but the same error is still there. @crowlkats is it possible this is a Windows problem?
51 replies