Is there an ideal workflow to get containers working on "Workers for platforms"? @Walshy | DevPlat E
Is there an ideal workflow to get containers working on "Workers for platforms"? @Walshy | DevPlat EE @Hard@Work | R2 @Mike Nomitch | Workers PM
cpuTime and wallTime
--dispatch-namespace in wrangler deployconst cpuLimit = 200;
const worker = c.env.appServiceDispatcher.get(
c.var.serviceUuid,
{},
{
limits: {
cpuMs: cpuLimit,
},
}
);
const startTime = performance.now();
const response = await worker.fetch(request);
const endTime = performance.now();
const duration = Math.min(Math.floor(endTime - startTime), cpuLimit);