Skip to content

Commit

Permalink
fix: remove execution function duration
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiichyCode committed Mar 13, 2024
1 parent 89425f1 commit 92fa667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/app/api/trigger/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { client } from "@/trigger";

import "@/jobs";

// this is the maximum duration of the function in seconds. It must be less than 300 seconds (5 minutes). Full docs: https://vercel.com/docs/functions/serverless-functions/runtimes#max-duration
export const maxDuration = 300;

//this route is used to send and receive data with Trigger.dev
export const { POST, dynamic } = createAppRoute(client);

Expand Down
8 changes: 2 additions & 6 deletions src/jobs/sync-repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ client.defineJob({
name: "Sync Repositories Job",
version: "0.0.1",

// trigger: cronTrigger({
// cron: "30 02 * * *",
// }),

trigger: intervalTrigger({
seconds: 60,
trigger: cronTrigger({
cron: "30 02 * * *",
}),

run: async (payload, io, ctx) => {
Expand Down

0 comments on commit 92fa667

Please sign in to comment.