Skip to content

onWrite function takes 15 seconds to begin #35

@OxyFlax

Description

@OxyFlax

Version info

firebase-functions: "^0.5"

firebase-admin: "^4.1.2"

Test case

const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);

exports.functionName = functions.database.ref('/Something/{somethingId}').onWrite(event => {
	const snapshot = event.data;
	const something = snapshot.val();
	
	if (something) {
		console.log('Cloud function executing...');
	}
});

Steps to reproduce

Add object under "Something" reference and look at the console when the message "Cloud function executing...".

Were you able to successfully deploy your functions?

No error message when I deployed the function.

Expected behavior

The message should appear directly when the object is added to the database.

Actual behavior

The message is appearing 15s after the object appear in database.

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