Skip to content

Commit 08953f3

Browse files
committed
be more permissive about kernel daemon in the face of supplemental render lists (blogs)
1 parent a512834 commit 08953f3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/command/render/project.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ import {
4646
} from "./freeze.ts";
4747
import { resourceFilesFromRenderedFile } from "./resources.ts";
4848
import { inputFilesDir } from "../../core/render.ts";
49-
import { removeIfEmptyDir, removeIfExists, safeRemoveIfExists } from "../../core/path.ts";
49+
import {
50+
removeIfEmptyDir,
51+
removeIfExists,
52+
safeRemoveIfExists,
53+
} from "../../core/path.ts";
5054
import { handlerForScript } from "../../core/run/run.ts";
5155
import { execProcess } from "../../core/process.ts";
5256
import { parseShellRunCommand } from "../../core/run/shell.ts";
@@ -209,10 +213,11 @@ export async function renderProject(
209213
}
210214

211215
// set executeDaemon to 0 for renders of the entire project
212-
// or a list of more than one file (don't want to leave dozens of
213-
// kernels in memory)
216+
// or a list of more than 3 files (don't want to leave dozens of
217+
// kernels in memory). we use 3 rather than 1 because w/ blogs
218+
// and listings there may be addtional files added to the render list
214219
if (
215-
filesToRender.length > 1 && options.flags &&
220+
filesToRender.length > 3 && options.flags &&
216221
options.flags.executeDaemon === undefined
217222
) {
218223
options.flags.executeDaemon = 0;

0 commit comments

Comments
 (0)