CPU fail

this either needs some good debugging utilities or serious rework.. suddenly all ci systems failing without reason is not great.
8 Replies
Felix || TM9657
Felix || TM9657•13mo ago
what is your exoerience?
James
James•13mo ago
Did you bump the versions of anything? Nothing has changed as far as I'm aware. And very soon, the startup time is doubling too 🤔
Felix || TM9657
Felix || TM9657•13mo ago
No I have not changed anything about that only more code in the main function 600 lines or so
James
James•13mo ago
And what happens if you revert that change?
Felix || TM9657
Felix || TM9657•13mo ago
seems ok MOSTLY it fails to deploy half of the tries xD the only thing that happens outside of the main function is this:
import { PrismaClient } from "@prisma/client/edge";
import useAccelerate from "@tm9657/extension-accelerate";

export type {
Plan,
MailingList,
User,
Contact,
Follows,
Profile,
Status,
StoreItem,
Model,
} from "@prisma/client/edge";
const createDB = (url: string) =>
new PrismaClient({
datasources: {
db: {
url,
},
},
}).$extends(useAccelerate);

let db: ReturnType<typeof createDB> | null = null;

const prisma = (url: string): ReturnType<typeof createDB> => {
if (!db) db = createDB(url);
else console.log("using cached prisma connection");
return db;
};
export default prisma;
import { PrismaClient } from "@prisma/client/edge";
import useAccelerate from "@tm9657/extension-accelerate";

export type {
Plan,
MailingList,
User,
Contact,
Follows,
Profile,
Status,
StoreItem,
Model,
} from "@prisma/client/edge";
const createDB = (url: string) =>
new PrismaClient({
datasources: {
db: {
url,
},
},
}).$extends(useAccelerate);

let db: ReturnType<typeof createDB> | null = null;

const prisma = (url: string): ReturnType<typeof createDB> => {
if (!db) db = createDB(url);
else console.log("using cached prisma connection");
return db;
};
export default prisma;
I checked the other packages I love workers so much, hearing that the CPU time doubles is great 🙂 already asked your support to increase the limit for my account (as implied by the docs), but no answer yet
Felix || TM9657
Felix || TM9657•13mo ago
probably.. however it is very hard to believe anything in my code takes 200ms right now would be great to know what exactly is the problem
Unknown User
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View