Skip to content

Commit b65f225

Browse files
committed
Tasks are indexed even if you don't export them 🤩
1 parent c87ff2c commit b65f225

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎references/hello-world/src/trigger/example.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,10 @@ export const batchTask = task({
138138
};
139139
},
140140
});
141+
142+
const nonExportedTask = task({
143+
id: "non-exported",
144+
run: async (payload: { message: string }, { ctx }) => {
145+
logger.info("Hello, world from the non-exported task", { message: payload.message });
146+
},
147+
});

0 commit comments

Comments
 (0)