Define and execute distributed tasks with TypeScript
Tasks are the fundamental unit of work in Hyrex. They are TypeScript functions that can be executed asynchronously by workers, with automatic retry handling, monitoring, and durability.
// Send a taskconst taskId = await processFile.send(context);console.log(`Task queued with ID: ${taskId}`);// Note: The TypeScript SDK returns only the task ID// Task status and results must be monitored through Hyrex Studio or logs