mmmartins Posted December 26, 2016 Share Posted December 26, 2016 How would I go about querying JasperServer for a job that has already run? I can get the job details for a scheduled jobhttp://HOST:PORT/jasperserver/rest/job/{JobID}/State/But couldn't find a way to get it for a job that has been completed. If I run that query for a completed job, I get a 404 exception Link to comment Share on other sites More sharing options...
mmmartins Posted December 26, 2016 Author Share Posted December 26, 2016 How would I go about querying JasperServer for a job that has already run? I can get the job details for a scheduled job: http://HOST:PORT/jasperserver/rest/job/{JobID}/State/ But couldn't find a way to get it for a job that has been completed. If I run that query for a completed job, I get a 404 exception. Link to comment Share on other sites More sharing options...
hozawa Posted December 26, 2016 Share Posted December 26, 2016 I think you'll doing it correctly. If you call the following API and get 404, it means the job has finished and removed. You'll have to make sure the jobId actually existed beforehand to know the job actually finished.http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/<jobID>/state/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now