I am guessing this has to do with how often your cron is run, see https://docs.moodle.org/311/en/Cron.
Custom certificate (plugin)
Time laps between completion and certificate award
This discussion has been locked so you can no longer reply to it.