You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/src/commands/init.ts
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -603,20 +603,28 @@ export const client = new TriggerClient({
603
603
import { eventTrigger } from "@trigger.dev/sdk";
604
604
import { client } from "${jobsPathPrefix}trigger";
605
605
606
-
// your first job
606
+
// Your first job
607
+
// This Job will be triggered by an event, log a joke to the console, and then wait 5 seconds before logging the punchline
607
608
client.defineJob({
609
+
// This is the unique identifier for your Job, it must be unique across all Jobs in your project
608
610
id: "example-job",
609
-
name: "Example Job",
611
+
name: "Example Job: a joke with a delay",
610
612
version: "0.0.1",
613
+
// This is triggered by an event using eventTrigger. You can also trigger Jobs with webhooks, on schedules, and more: https://trigger.dev/docs/documentation/concepts/triggers/introduction
0 commit comments