Skip to content

Commit e24f740

Browse files
ericallamjacobparis
authored andcommitted
v2: Graphile auto-cleanup and auto-endpoint disabling (triggerdotdev#1103)
* Auto-cleanup failed graphile jobs instead of keeping them around * Disable endpoint after a period of sequential indexing failures * Remove log
1 parent 2b4aaf8 commit e24f740

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

apps/webapp/app/platform/zodWorker.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export class ZodWorker<TMessageCatalog extends MessageCatalogSchema> {
578578
}
579579

580580
if (job.attempts >= job.max_attempts) {
581-
logger.debug("Job failed after max attempts", {
581+
logger.error("Job failed after max attempts", {
582582
job,
583583
attempts: job.attempts,
584584
max_attempts: job.max_attempts,

apps/webapp/app/services/endpoints/performEndpointIndexService.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,6 @@ async function updateEndpointIndexWithError(
492492
recentIndexes.length === MAX_SEQUENTIAL_FAILURE_COUNT - 1 &&
493493
recentIndexes.every((index) => index.status === "FAILURE")
494494
) {
495-
logger.debug("Disabling endpoint", {
496-
endpointId,
497-
error,
498-
});
499-
500495
await prismaClient.endpoint.update({
501496
where: {
502497
id: endpointId,

0 commit comments

Comments
 (0)