Data export as a background job, for a subject too large to zip during a request: the job writes the archive to file storage, and its requester downloads it for a day. Needs the jobs module.
ctx here is {:store IExportJobStore :file-storage IFileStorage
:provider kw :data-export IDataExport :job-queue IJobQueue :queue kw
:requests-per-hour n}.
Data export as a background job, for a subject too large to zip during a
request: the job writes the archive to file storage, and its requester
downloads it for a day. Needs the jobs module.
`ctx` here is {:store IExportJobStore :file-storage IFileStorage
:provider kw :data-export IDataExport :job-queue IJobQueue :queue kw
:requests-per-hour n}.(download-response {:keys [file-storage provider]} {:keys [id file-key]})The archive of job: a redirect to a short-lived signed URL where the
storage serves one itself, else the bytes.
The archive of `job`: a redirect to a short-lived signed URL where the storage serves one itself, else the bytes.
(request-export! {:keys [store job-queue queue requests-per-hour]}
subject
requested-by)Queue an export of subject for requested-by; their job already open
for it, if there is one. At most :requests-per-hour new jobs per
requester, 0 for no limit.
Queue an export of `subject` for `requested-by`; their job already open for it, if there is one. At most `:requests-per-hour` new jobs per requester, 0 for no limit.
(run-export-job {:keys [store file-storage data-export]} {:keys [export-id]})The handler of job-type. The archive is private and kept out of the
upload index, so it is in no later export.
The handler of `job-type`. The archive is private and kept out of the upload index, so it is in no later export.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |