Skip to content

Commit

Permalink
fix: Smaller issues (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
ServerlessLife authored Oct 3, 2024
1 parent ecce4d4 commit 5e50580
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Pull Request CI check

on:
workflow_dispatch:
pull_request:
branches:
- main
# pull_request:
# branches:
# - main
pull_request_target:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion src/nodeEsBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function build(input: {
let ctx = input.oldCtx;

Logger.verbose(
`[Function ${input.functionId}] Module type: ${isESM ? 'ESM' : 'CJS'})`,
`[Function ${input.functionId}] Module type: ${isESM ? 'ESM' : 'CJS'}`,
);

if (!ctx) {
Expand Down
7 changes: 0 additions & 7 deletions src/nodeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ async function stopAllWorkers() {
for (const worker of workers.values()) {
if (worker.used) {
worker.toKill = true;
// set timout for 5 minutes and kill the worker if it is still running
setTimeout(() => {
if (worker.toKill) {
worker.toKill = false;
void worker.terminate();
}
}, 300000);
} else {
promises.push(worker.terminate());
}
Expand Down

0 comments on commit 5e50580

Please sign in to comment.