Run a scheduled job now, for real
POST /Platform/jobs/run-now
Run a scheduled job now, for real.
The job's tool runs immediately with its real side effects, as the scheduler would run it: as the job's creator, with the creator's access, not yours (you choose when it runs, not what it may do). What happens to the schedule afterwards:
- a job that runs once is used up: it is done and will not run again on its scheduled date;
- a recurring job runs one extra time and keeps its next scheduled occurrence;
- a job whose tool manages its own timing (a delivery that retries, a task held until a date) lets the tool decide whether it is done or when it runs next.
Use the test run (simulate) to try a job without side effects. A
long run answers 202 with an async_id; poll it with poll_async.
Body parameters
job_id: str. The ScheduledJob to run.
Returns
JobRun
status: "ran" or "failed" or "started". Whether the tool completed or failed; started when it runs on in the background (an agent turn), its outcome recorded on the job.job_id: str. The ScheduledJob that ran.tool: str. Invoked tool name.result: optional JsonValue. Tool result encoded as public JSON, when it ran.failure: optional str or null. Tool failure message when status is failed.job_status: optional "pending" or "done" or null. The job's status after the run: done for a one-off.next_run_at: optional moment or null. Next scheduled occurrence as an ISO timestamp, if any.
Example request
curl -X POST "https://api.hilus.ai/Platform/jobs/run-now" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'