MCPcopy Index your code
hub / github.com/fontsource/fontsource / scheduled

Function scheduled

api/metadata/src/worker.ts:26–48  ·  view source on GitHub ↗
(
		_event: ScheduledEvent,
		env: Env,
		ctx: ExecutionContext,
	)

Source from the content-addressed store, hash-verified

24
25 // This is a daily scheduled event to update the metadata.
26 async scheduled(
27 _event: ScheduledEvent,
28 env: Env,
29 ctx: ExecutionContext,
30 ): Promise<void> {
31 // Update fontlist and aggregate metadata object.
32 await updateMetadata(env, ctx);
33 for (const type of fontlistQueries) {
34 await updateList(type, env, ctx);
35 }
36
37 // Update the metadata arr. We'll let the rest of the individual font ids expire
38 // and update on their own.
39 await updateArrayMetadata(env, ctx);
40
41 // Update variable lists.
42 await updateAxisRegistry(env, ctx);
43 await updateVariableList(env, ctx);
44
45 // Update stats.
46 await updatePackageStatAll(env, ctx);
47 // TODO: Versions
48 },
49};

Callers

nothing calls this directly

Calls 6

updateMetadataFunction · 0.90
updateListFunction · 0.90
updateArrayMetadataFunction · 0.90
updateAxisRegistryFunction · 0.90
updateVariableListFunction · 0.90
updatePackageStatAllFunction · 0.90

Tested by

no test coverage detected