https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • c

    Ceru ©

    03/07/2023, 12:23 AM
    i believe its
    output.library.type
  • l

    lattenb

    03/07/2023, 12:23 AM
    yep
  • l

    lattenb

    03/07/2023, 12:23 AM
    requires experiments.outputModule: true too
  • l

    lattenb

    03/07/2023, 12:23 AM
    is miniflare any more useful for detecting issues like this?
  • c

    Ceru ©

    03/07/2023, 12:23 AM
    might be
  • l

    lattenb

    03/07/2023, 12:25 AM
    @Ceru © thank you thank you. that was it!
  • l

    lattenb

    03/07/2023, 12:26 AM
    is there a place I can PR the documentation to specify that?
  • p

    Pato

    03/07/2023, 12:40 AM
    yes
  • z

    zszszsz

    03/07/2023, 12:47 AM
    Is it rsassa-pkcs1-v1_5 ?
  • z

    zszszsz

    03/07/2023, 12:47 AM
    I am not very sure about the algorithm
  • z

    zszszsz

    03/07/2023, 12:49 AM
    Crypto provides ecdsa-sha though.
  • d

    dave

    03/07/2023, 1:11 AM
    why not just this?
    Copy code
    typescript
    export default {
        fetch: app.fetch,
        async scheduled(_: ScheduledEvent, env: Env, ctx: ExecutionContext) {
            ctx.waitUntil(someFunction(env, ctx))
        },
    }
  • c

    Cyb3r-Jok3

    03/07/2023, 1:15 AM
    Because I didn't realize I could do that 😅 I've changed it now
  • d

    dave

    03/07/2023, 1:15 AM
    I could have sworn this code was from you
  • d

    dave

    03/07/2023, 1:15 AM
    somebody other than me definitely showed me
  • c

    Cyb3r-Jok3

    03/07/2023, 1:16 AM
    Wouldn't surprise me if it was another champ
  • k

    kian

    03/07/2023, 1:23 AM
    it was me
  • k

    kian

    03/07/2023, 1:23 AM
    I also posted it under Jake’s message you replied to
  • d

    dave

    03/07/2023, 4:50 AM
    oh derp
  • i

    IdkWhatever69

    03/07/2023, 6:53 AM
    guys what db shall i use for my workers (that handle customer payment (through stripe))?
  • i

    IdkWhatever69

    03/07/2023, 6:54 AM
    i want overall response times for the workers to be low therefore prefer less requests to the db therefore graphql availability is appreciated
  • p

    Panthy

    03/07/2023, 9:49 AM
    if you need something production ready I would recommend planetscale with their serverless driver.
  • i

    IdkWhatever69

    03/07/2023, 10:09 AM
    planetscale is perfect! thank you so much
  • p

    piepie

    03/07/2023, 10:26 AM
    Does anyone know how long a worker stays "warm" for? I ask because we're using Upstash Redis with workers and after a request is made to Upstash there is a keepalive period where the connection remains to be reused. A worker can reuse the connection as long as it's still warm and hasn't been evicted from memory yet. With a reused connection latency is 50ms, with a new connection latency can be in the 200 to 400ms range, regardless of how close the worker is to the Upstash db due to the cost of opening a new ssl connection to Upstash
  • p

    Panthy

    03/07/2023, 11:26 AM
    "Isolates stay warm until the memory they consume is needed for something else. We evict the least-recently-used isolate when we need memory for a new one. So how long that is varies depending on how much traffic the isolate gets compared to its neighbors." - kentonv
  • k

    kulotskinakalbo

    03/07/2023, 12:33 PM
    anyone here tried using mailchannels? i got an error on trying to send an email
  • k

    kulotskinakalbo

    03/07/2023, 12:35 PM
    my code
  • k

    kian

    03/07/2023, 12:55 PM
    Like the error says, you're missing content
  • k

    kian

    03/07/2023, 12:55 PM
    textBody
    isn't a thing
  • k

    kian

    03/07/2023, 12:55 PM
    https://api.mailchannels.net/tx/v1/documentation
1...232523262327...2509Latest