unschedule and unschedule_named use CronJobRelationId() which caches the CachedCronJobRelationId on the backend of the user connection. This connection does not register for cache invalidations so this value is not cleared when the extension is dropped and recreated leading to errors.
This change fixes the issue adding CronJobRelationIdUncached function and using in places where we do not want to cache the value.
unschedule
andunschedule_named
useCronJobRelationId()
which caches theCachedCronJobRelationId
on the backend of the user connection. This connection does not register for cache invalidations so this value is not cleared when the extension is dropped and recreated leading to errors.This change fixes the issue adding
CronJobRelationIdUncached
function and using in places where we do not want to cache the value.Fixes #344