{ retries: { limit: 12, delay: '2s', backoff: 'constant' } }Compute time per step) you have 10 seconds (free plan) or 30 seconds (paid plan)

11/21/24, 6:47 PM
.id, I get the following error message: Error: AssertionError: Could not retrieve instance metadata.{ retries: { limit: 12, delay: '2s', backoff: 'constant' } }✘ [ERROR] Uncaught (in promise) Error: NOT NULL constraint failed: priority_queue.target_timestamp: SQLITE_CONSTRAINTCompute time per stepexport default {
async fetch(): Promise<Response> {
// Return 400 for direct HTTP requests since workflows should be triggered via bindings
return Response.json(
{ error: "Workflows must be triggered via bindings" },
{ status: 400 },
);
},
async create({ params }: { params: InitSyncParams }, env: Env) {
const workflow = await env.SYNC_REPO_INIT_WORKFLOW.create({ params });
return workflow.id;
},
async terminate(id: string, env: Env) {
const instance = await env.SYNC_REPO_INIT_WORKFLOW.get(id);
await instance.terminate();
},
async getInstanceStatus(id: string, env: Env) {
const instance = await env.SYNC_REPO_INIT_WORKFLOW.get(id);
return await instance.status();
},
};.idError: AssertionError: Could not retrieve instance metadata