This commit is contained in:
2024-01-21 17:25:27 +08:00
parent 622c689619
commit 34562f6d18
2 changed files with 1 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ ENV DENO_DEPLOYMENT_ID=${DENO_DEPLOYMENT_ID}
ENV DOCKER=true
EXPOSE 8000
ENTRYPOINT ["/usr/bin/deno" "task" "server"]
ENTRYPOINT ["/usr/bin/deno", "task", "server"]
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
CMD curl -Lk -fsS http://localhost:8000/api/health_check || exit 1

View File

@@ -1,5 +1,4 @@
import { TaskManager } from "./task_manager.ts";
import { isDocker } from "./utils.ts";
export const ExitTarget = new EventTarget();
@@ -13,10 +12,6 @@ export function add_exit_handler(m: TaskManager) {
m.close();
};
const handler = async () => {
if (isDocker()) {
force_kill();
return;
}
if (ignore_signal) return;
if (first_aborted) {
m.abort();