Job
Job application is an Heim-application with a single Job-trigger declared.
Job triggers are a work-load that only gets executed on-command, so each execution gets queued up either by API or through Heim-portal.
This is also the only executable that accepts regular command-line arguments for each execution.
Limited to maximum queue-size and how many executions you are allow per month, see Organization Limits.
Prerequisites
Section titled “Prerequisites”Queue a Job
Section titled “Queue a Job”There are two way to queue up a Job, either through the Heim-portal or with the help of the API.
Heim-portal
Section titled “Heim-portal”Go to your job-application in the Heim-portal and navigate to executions. Here we click the button Run New Job and we get the possibility to trigger a new Job, together with an optional array of string arguments.
Application Executions Run new job
Here you can see your Jobs in the queue and the completed jobs.
Application Executions Queue
You have access to the status-card for each completed Job, where you can se the log-output for the single execution and also be able to re-run an existing Job.
Application Executions Status
You will need an API-token created, and then you can deploy jobs with the following request.
Endpoint: https://cloud.heim.dev/heim/api/v2/application/heim-rust-job/add-job Method: POST Headers: Authorization: Bearer < REPLACE_WITH_API_TOKEN> Content-Type: application/json Body:
{ "jobs": [ { "arguments": ["arg1-for-job-1","arg1-for-job-1"] }, { "arguments": ["arg1-for-job-2","arg1-for-job-2"] }, { "arguments": ["arg1-for-job-3","arg1-for-job-3"] } ],}