@hotmeshio/hotmesh
Version:
Serverless Workflow
13 lines (12 loc) • 634 B
TypeScript
import { EngineService } from '../engine';
import { ActivityData, ActivityMetadata, ActivityType, WorkerActivity } from '../../types/activity';
import { JobState } from '../../types/job';
import { ProviderTransaction } from '../../types/provider';
import { Activity } from './activity';
declare class Worker extends Activity {
config: WorkerActivity;
constructor(config: ActivityType, data: ActivityData, metadata: ActivityMetadata, hook: ActivityData | null, engine: EngineService, context?: JobState);
process(): Promise<string>;
execActivity(transaction: ProviderTransaction): Promise<string>;
}
export { Worker };