fix: Ensure all crawl tasks use method='http' transport
- product_discovery → product_refresh now sets method: 'http' - product_refresh → entry_point_discovery now sets method: 'http' - All crawl tasks now require HTTP preflight to claim 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -344,6 +344,7 @@ export async function handleProductDiscoveryHttp(ctx: TaskContext): Promise<Task
|
|||||||
role: 'product_refresh',
|
role: 'product_refresh',
|
||||||
dispensary_id: dispensaryId,
|
dispensary_id: dispensaryId,
|
||||||
priority: task.priority || 0,
|
priority: task.priority || 0,
|
||||||
|
method: 'http', // Browser-only transport
|
||||||
payload: { payload_id: payloadResult.id },
|
payload: { payload_id: payloadResult.id },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export async function handleProductRefresh(ctx: TaskContext): Promise<TaskResult
|
|||||||
role: 'entry_point_discovery',
|
role: 'entry_point_discovery',
|
||||||
dispensary_id: dispensaryId,
|
dispensary_id: dispensaryId,
|
||||||
priority: task.priority || 0,
|
priority: task.priority || 0,
|
||||||
|
method: 'http', // Browser-only transport
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user