fp/packages/temporal/src/workflows.ts

12 lines
364 B
TypeScript
Raw Normal View History

2024-06-12 04:28:36 +00:00
import { proxyActivities } from '@temporalio/workflow';
import type * as activities from './activities';
const { logTime } = proxyActivities<typeof activities>({
startToCloseTimeout: '1 minute',
});
/** A workflow that simply calls an activity */
export async function scheduledWorkflow(name: string): Promise<void> {
await logTime(name, '' + Date.now());
}