MCPcopy Index your code
hub / github.com/parse-community/parse-server / setRunning

Function setRunning

src/StatusHandler.js:81–94  ·  view source on GitHub ↗
(jobName)

Source from the content-addressed store, hash-verified

79 const database = config.database;
80 const handler = statusHandler(JOB_STATUS_COLLECTION, database);
81 const setRunning = function (jobName) {
82 const now = new Date();
83 jobStatus = {
84 objectId,
85 jobName,
86 status: 'running',
87 source: 'api',
88 createdAt: now,
89 // lockdown!
90 ACL: {},
91 };
92
93 return handler.create(jobStatus);
94 };
95
96 const setMessage = function (message) {
97 if (!message || typeof message !== 'string') {

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
verboseMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected