Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(functions): Add features to task queue functions #2216

Merged
merged 13 commits into from
Jul 10, 2023
Merged
Prev Previous commit
Next Next commit
make task already exists error consistent w rest of admin sdk
blidd-google committed Jun 29, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f9742582d45ab39e326df796b63c0f5835463df3
3 changes: 3 additions & 0 deletions etc/firebase-admin.functions.api.md
Original file line number Diff line number Diff line change
@@ -40,6 +40,8 @@ export function getFunctions(app?: App): Functions;
// @public
export type TaskOptions = DeliverySchedule & TaskOptionsExperimental & {
dispatchDeadlineSeconds?: number;
id?: string;
headers?: Record<string, string>;
};

// @public
@@ -50,6 +52,7 @@ export interface TaskOptionsExperimental {

// @public
export class TaskQueue<Args = Record<string, any>> {
delete(id: string): Promise<void>;
enqueue(data: Args, opts?: TaskOptions): Promise<void>;
}

Loading