IssueRaiser

[FR] Support for scheduled functions in emulator

<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug_report.md --> ### [REQUIRED] Environment info <!-- What version of the Firebase CLI (`firebase-tools`) are you using? Note that your issue may already be fixed in the latest versions. The latest version can be found at https://github.com/firebase/firebase-tools/releases --> <!-- Output of `firebase --version` --> **firebase-tools:** 7.15.0 & 7.15.1 <!-- e.g. macOS, Windows, Ubuntu --> **Platform:** macOS 18.7.0 Darwin Kernel Version 18.7.0: ### [REQUIRED] Test case ```typescript export const pubsubScheduled = functions.pubsub .schedule('every 1 minutes') .onRun(context => { console.log('Resource', JSON.stringify(context.resource)); return true; }); ``` ### [REQUIRED] Steps to reproduce `firebase emulators firebase emulators:start` `✔ functions[pubsubScheduled]: pubsub function initialized.` ### [REQUIRED] Expected behavior Logging every 1 minute in the console ### [REQUIRED] Actual behavior No output Links: https://github.com/firebase/firebase-tools/commit/b6fa88aa166bddc8969cbed7bd3b35392e307dd5 https://github.com/firebase/firebase-tools/commit/4dc64dac1d54f9e863fa2a99769bca447320940f https://github.com/firebase/firebase-tools/pull/1543#issuecomment-600763141

Posted by Elyx0 on Mar 18, 2020, 5:49 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

support (Software)

[FR] Support for scheduled functions in emulator

Elyx0Mar 18, 2020, 5:49 PM

<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug_report.md --> ### [REQUIRED] Environment info <!-- What version of the Firebase CLI (`firebase-tools`) are you using? Note that your issue may already be fixed in the latest versions. The latest version can be found at https://github.com/firebase/firebase-tools/releases --> <!-- Output of `firebase --version` --> **firebase-tools:** 7.15.0 & 7.15.1 <!-- e.g. macOS, Windows, Ubuntu --> **Platform:** macOS 18.7.0 Darwin Kernel Version 18.7.0: ### [REQUIRED] Test case ```typescript export const pubsubScheduled = functions.pubsub .schedule('every 1 minutes') .onRun(context => { console.log('Resource', JSON.stringify(context.resource)); return true; }); ``` ### [REQUIRED] Steps to reproduce `firebase emulators firebase emulators:start` `✔ functions[pubsubScheduled]: pubsub function initialized.` ### [REQUIRED] Expected behavior Logging every 1 minute in the console ### [REQUIRED] Actual behavior No output Links: https://github.com/firebase/firebase-tools/commit/b6fa88aa166bddc8969cbed7bd3b35392e307dd5 https://github.com/firebase/firebase-tools/commit/4dc64dac1d54f9e863fa2a99769bca447320940f https://github.com/firebase/firebase-tools/pull/1543#issuecomment-600763141

Comments (0)

No comments yet. Start the discussion.

Comment on this issue