MCPcopy Create free account
hub / github.com/codecombat/codecombat / create

Function create

app/core/api/background-job.js:4–13  ·  view source on GitHub ↗
(jobType, input, other)

Source from the content-addressed store, hash-verified

2const { sleep } = require('lib/common-utils')
3
4function create (jobType, input, other) {
5 let url = '/db/background-jobs'
6 if (other) {
7 url = '/' + other + url
8 }
9 return fetchJson(url, {
10 method: 'POST',
11 json: { type: jobType, input }
12 })
13}
14
15function get (jobId, other, options = {}) {
16 let url = `/db/background-jobs/${jobId}`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected