Open 0x4007 opened 7 months ago
That's a cool idea, we can just listen for push
events and if the config changed we can save it in Cloudflare KV.
However I don't think this is the bottleneck. I think invoking a workflow dispatch and the time it takes Github to launch the Action runner and execute it, is much larger than just a few network roundtrips.
invoking a workflow dispatch and the time it takes Github to launch the Action runner and execute it, is much larger than just a few network roundtrips
I agree. I think we can set up continuous deployment for those repositories on their main branches and then use those Cloudflare Workers deployments as an endpoint instead.
To clarify this topic is not a high priority. It's just an optimization I want to bear in mind as we continue our r&d on the kernel.
This still requires research on the best approach but currently the bot replies to events in a relatively slow manner. I think that some of the largest time overhead is due to the multiple network roundtrips that are incurred for compiling the configuration for every run.
Originally posted by @pavlovcik in https://github.com/ubiquity/pay.ubq.fi/issues/135#issuecomment-1943089107