I wan to create a pubsub function after a function.firestore.onWrite function is triggered, since this last one contains the cron to be specified in the pubsub.schedule(cron).onRun(=>{})
What will be the correct way to wait for the cron time to be created and "deploy" the pubsub function afterwards?, so is created once the cron is known.