Move the visibility queue stuff into a graphile job

This commit is contained in:
Eric Allam
2024-04-30 17:29:38 +01:00
parent d1bdd0cf5d
commit e24631e2dd
9 changed files with 183 additions and 60 deletions
@@ -222,7 +222,7 @@ sender.send("TASKS_READY", { tasks: TASK_METADATA }).catch((err) => {
process.title = "trigger-dev-worker";
async function asyncHeartbeat(initialDelayInSeconds: number = 30, intervalInSeconds: number = 5) {
async function asyncHeartbeat(initialDelayInSeconds: number = 30, intervalInSeconds: number = 30) {
async function _doHeartbeat() {
while (true) {
if (_isRunning && _execution) {
+1
View File
@@ -51,6 +51,7 @@ export const TaskRunInternalError = z.object({
"TASK_OUTPUT_ERROR",
"HANDLE_ERROR_ERROR",
"GRACEFUL_EXIT_TIMEOUT",
"TASK_RUN_HEARTBEAT_TIMEOUT",
]),
message: z.string().optional(),
});