mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Update
This commit is contained in:
@@ -93,7 +93,7 @@ ENV DENO_DEPLOYMENT_ID=${DENO_DEPLOYMENT_ID}
|
|||||||
ENV DOCKER=true
|
ENV DOCKER=true
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
ENTRYPOINT ["/usr/bin/deno" "task" "server"]
|
ENTRYPOINT ["/usr/bin/deno", "task", "server"]
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
||||||
CMD curl -Lk -fsS http://localhost:8000/api/health_check || exit 1
|
CMD curl -Lk -fsS http://localhost:8000/api/health_check || exit 1
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { TaskManager } from "./task_manager.ts";
|
import { TaskManager } from "./task_manager.ts";
|
||||||
import { isDocker } from "./utils.ts";
|
|
||||||
|
|
||||||
export const ExitTarget = new EventTarget();
|
export const ExitTarget = new EventTarget();
|
||||||
|
|
||||||
@@ -13,10 +12,6 @@ export function add_exit_handler(m: TaskManager) {
|
|||||||
m.close();
|
m.close();
|
||||||
};
|
};
|
||||||
const handler = async () => {
|
const handler = async () => {
|
||||||
if (isDocker()) {
|
|
||||||
force_kill();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (ignore_signal) return;
|
if (ignore_signal) return;
|
||||||
if (first_aborted) {
|
if (first_aborted) {
|
||||||
m.abort();
|
m.abort();
|
||||||
|
|||||||
Reference in New Issue
Block a user