run_job() Community
Run a previously registered job in the current session. This works for user-defined actions as well as policies. Since run_job
is implemented as stored procedure it cannot be executed inside a SELECT query but has to be executed with CALL.
TIP:Any background worker job can be run in foreground when executed with
run_job
. This can be useful to debug problems when combined with increased log level.
Required Arguments
Name | Description |
---|---|
job_id | (INTEGER) TimescaleDB background job id |
Sample Usage
SET client_min_messages TO DEBUG1;
CALL run_job(1000);
Set log level shown to client to DEBUG1 and run the job with the job id 1000.
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .