What would be the best way to run a task a few minutes after a function executes? I was thinking ei

What would be the best way to run a task a few minutes after a function executes? I was thinking either a cron task (in workers) that runs every 5 minutes and checks for a list of scheduled tasks in the database, or a durable object with alarms?
Was this page helpful?