File size: 351 Bytes
5b12974
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { task, logger } from "@trigger.dev/sdk/v3";

export const testTask = task({
  id: "test-task",
  run: async (payload: { message: string }) => {
    logger.info("Test task is running:", { payload });
    
    return {
      success: true,
      message: `Processed: ${payload.message}`,
      timestamp: new Date().toISOString()
    };
  },
});