0

I am wondering how to write a proper code for runnning a job on particular date on Firebase.

For cron-type job, I know these situation should be realized as follows:

exports.scheduledFunctionCrontab = functions.pubsub.schedule('5 11 * * *')
  .timeZone('America/New_York') // Users can choose timezone - default is America/Los_Angeles
  .onRun((context) => {
  console.log('This will be run every day at 11:05 AM Eastern!');
  return null;
});

but this for "repeated" job and not for "one-time" job.

Is there any way to run particular job on a particular date using Firebase?

Thanks!