default to false

This commit is contained in:
Matteo Ferrando 2023-10-26 13:18:15 -04:00
parent 1ee2832e2b
commit 347a6d118a

View File

@ -131,7 +131,7 @@ export async function subscribe<Input, Output>(
const pollInterval = options.pollInterval ?? 1000; const pollInterval = options.pollInterval ?? 1000;
const poll = async () => { const poll = async () => {
try { try {
const requestStatus = await queue.status(id, requestId, options.logs ?? true); const requestStatus = await queue.status(id, requestId, options.logs ?? false);
if (options.onQueueUpdate) { if (options.onQueueUpdate) {
options.onQueueUpdate(requestStatus); options.onQueueUpdate(requestStatus);
} }
@ -237,7 +237,7 @@ export const queue: Queue = {
): Promise<EnqueueResult> { ): Promise<EnqueueResult> {
return run(id, { ...options, method: 'post', path: '/fal/queue/submit/' }); return run(id, { ...options, method: 'post', path: '/fal/queue/submit/' });
}, },
async status(id: string, requestId: string, logs: boolean = true): Promise<QueueStatus> { async status(id: string, requestId: string, logs: boolean = false): Promise<QueueStatus> {
return run(id, { return run(id, {
method: 'get', method: 'get',
path: `/fal/queue/requests/${requestId}/status`, path: `/fal/queue/requests/${requestId}/status`,