makrdev
CDCloudflare Developers
•Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
What about the duration of the grace period you mentioned?
7 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
Yeah I get it. Just make sure you are trying to optimize the right thing 😀 200ms is not too much to complain about as long as you have fast results from those api. Maybe you can check better solutions for image processing. Anyway I gotta go right know. You can always reach out to me on Discord if you wanna chat. All the best 🤜🤜
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
I don’t know your stack but if you use something like supabase/convex or any other sync engine you can subscribe to db changes. Other than this yeah you need to pull periodically.
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
Yeah this flow is the definition of workflow actually 😀 You will have retry logic for each step as well as pausing/resuming the flow. Also, you can create a logic like ‘human in the flow’. You can run your flow until a certain step and wait for human interaction etc.
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
Workflow is not a totaly new product actually. It’s just a wrapper around workers actually. Also, it’s not fully developed at the moment I’m sure it will have better tooling and docs in the near future.
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
It’s a new product so getting confused is totally normal. I had the same issues that’s why I wanted to share with you 😂
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
Default export > App or as object with fetch key if you need to add schedule or any other service.
Named export > Workflow class (you can create this in another file and export it index.ts)
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
No you just need to export your workflow class as named export.
25 replies
CDCloudflare Developers
•Created by makrdev on 11/1/2024 in #workflows-beta
Workflow hono workers question
Yes, create your workflow class and export where you export your hono app.
25 replies
CDCloudflare Developers
•Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
How long does it take? Are we talking about a long period like hours-minutes or just a couple seconds?
Also, is this grace period applied to the ‘pause’ state as well?
7 replies