MCPcopy Create free account
hub / github.com/apache/cloudberry / InvalidateJobCache

Function InvalidateJobCache

src/backend/task/job_metadata.c:390–401  ·  view source on GitHub ↗

* Invalidate job cache ensures the job cache is reloaded on the next * iteration of pg_cron. */

Source from the content-addressed store, hash-verified

388 * iteration of pg_cron.
389 */
390static void
391InvalidateJobCache(void)
392{
393 HeapTuple classTuple = NULL;
394
395 classTuple = SearchSysCache1(RELOID, ObjectIdGetDatum(TaskRelationId));
396 if (HeapTupleIsValid(classTuple))
397 {
398 CacheInvalidateRelcacheByTuple(classTuple);
399 ReleaseSysCache(classTuple);
400 }
401}
402
403/*
404 * InvalidateJobCacheCallback invalidates the job cache in response to

Callers 3

ScheduleCronJobFunction · 0.85
UnscheduleCronJobFunction · 0.85
AlterCronJobFunction · 0.85

Calls 4

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected