MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / toggleScheduledJob

Function toggleScheduledJob

static/js/app.js:992–1001  ·  view source on GitHub ↗
(jobUuid, shouldEnable)

Source from the content-addressed store, hash-verified

990}
991
992async function toggleScheduledJob(jobUuid, shouldEnable) {
993 try {
994 const endpoint = shouldEnable ? `/registration/schedules/${jobUuid}/enable` : `/registration/schedules/${jobUuid}/pause`;
995 await api.post(endpoint, {});
996 toast.success(shouldEnable ? '计划任务已启用' : '计划任务已暂停');
997 await loadScheduledJobs();
998 } catch (error) {
999 toast.error(error.message);
1000 }
1001}
1002
1003async function runScheduledJobNow(jobUuid) {
1004 try {

Callers

nothing calls this directly

Calls 4

loadScheduledJobsFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected