@miniflare/scheduler
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -15,2 +15,3 @@ import { CorePluginSignatures } from '@miniflare/core'; | ||
private scheduledHandles?; | ||
private inaccurateCpu?; | ||
constructor(mf: MiniflareCore<Plugins>, cronScheduler?: Promise<CronSchedulerImpl>); | ||
@@ -17,0 +18,0 @@ [kReload]: (event: ReloadEvent<Plugins>) => Promise<void>; |
@@ -99,4 +99,6 @@ var __create = Object.create; | ||
scheduledHandles; | ||
inaccurateCpu; | ||
[kReload] = async (event) => { | ||
const validatedCrons = event.plugins.SchedulerPlugin.validatedCrons; | ||
this.inaccurateCpu = event.plugins.CorePlugin.inaccurateCpu; | ||
if (this.previousValidatedCrons === validatedCrons) | ||
@@ -113,5 +115,7 @@ return; | ||
const start = process.hrtime(); | ||
const startCpu = this.inaccurateCpu ? process.cpuUsage() : void 0; | ||
const waitUntil = this.mf.dispatchScheduled(void 0, spec); | ||
await (0, import_core.logResponse)(this.mf.log, { | ||
start, | ||
startCpu, | ||
method: "SCHD", | ||
@@ -118,0 +122,0 @@ url: spec, |
{ | ||
"name": "@miniflare/scheduler", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "Scheduler module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,9 +38,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/core": "2.7.1", | ||
"@miniflare/shared": "2.7.1", | ||
"@miniflare/core": "2.8.0", | ||
"@miniflare/shared": "2.8.0", | ||
"cron-schedule": "^3.0.4" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.7.1" | ||
"@miniflare/shared-test": "2.8.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11368
186
+ Added@miniflare/core@2.8.0(transitive)
+ Added@miniflare/shared@2.8.0(transitive)
+ Added@miniflare/watcher@2.8.0(transitive)
- Removed@miniflare/core@2.7.1(transitive)
- Removed@miniflare/shared@2.7.1(transitive)
- Removed@miniflare/watcher@2.7.1(transitive)
Updated@miniflare/core@2.8.0
Updated@miniflare/shared@2.8.0