MCPcopy
hub / github.com/Dokploy/dokploy / removeJob

Function removeJob

apps/dokploy/server/utils/backup.ts:46–61  ·  view source on GitHub ↗
(job: QueueJob)

Source from the content-addressed store, hash-verified

44};
45
46export const removeJob = async (job: QueueJob) => {
47 try {
48 const result = await fetch(`${process.env.JOBS_URL}/remove-job`, {
49 method: "POST",
50 headers: {
51 "Content-Type": "application/json",
52 "X-API-Key": process.env.API_KEY || "NO-DEFINED",
53 },
54 body: JSON.stringify(job),
55 });
56 const data = await result.json();
57 return data;
58 } catch (error) {
59 throw error;
60 }
61};
62
63export const updateJob = async (job: QueueJob) => {
64 try {

Callers 6

schedule.tsFile · 0.90
backup.tsFile · 0.90
settings.tsFile · 0.90
volume-backups.tsFile · 0.90
cancelJobsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected