Skip to content

Support failurePolicy - retry #297

Closed
@craigmulligan

Description

@craigmulligan

Currently, you can't pass failure policy to firebasefunctions which means you cant deploy retryable functions with firebase-tools.

Not sure I'll have time to submit a PR but my two-cents on the API would be.

exports.webhookAsia = functions
   .region('asia-northeast1')
   .failurePolicy({ retry: true }) // set retry on failure to true
   .user.onCreate((req, res) => {
           res.send("Hello");
   });

NOTE the gcloud functions api expects the failure policy to be formed - assume this is to future proof retry options.

{ failurePolicy: { retry: {}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions