Open
Description
firebase-functions: 6.3.2
If creating a schedule.onRun function, onInit is not called because of this lines:
Will set label deployment-scheduled to true
firebase-functions/src/v1/providers/pubsub.ts
Line 155 in cce55b5
makeCloudFunction is wrapping withInit on the first line
firebase-functions/src/v1/cloud-functions.ts
Line 370 in cce55b5
However, because of the deployment-scheduled label it uses the non wrapped handler:
firebase-functions/src/v1/cloud-functions.ts
Line 411 in cce55b5
Expected behavior
onInit callback is called
Actual behavior
onInit is not called and causes issues with the function execution