AWS Thinkbox Discussion Forums

webservice filtered job query via rest api?

The functions i could find for querying jobs from the rest api get all the jobs. Is there a way to do filtered queries? Querying them all takes ~5 minutes…

Sorry let me clarify, NOT the rest api, but the built in scripting module:

from Deadline.Scripting import *

So for example, PulseUtils.GetPulseJobs() etc

Hi Laszlo,

You can get Jobs by job state: docs.thinkboxsoftware.com/produc … b47493c8b7

Is job state sufficient, or are you looking for other criteria for filtering?

Thanks James, that might be enough for our current needs. It would be good to maybe declare the property names you want to get in the return set, so instead of getting the entire document from the mongo db, you could get just the requested name/value pairs. The amount of data in a job document is excessive (for example, 90% are vray render properties), and most of the time we just need 1 or 2.

Good idea, Laszlo. I’ve logged this to the wishlist.

You could also just use the .NET Mongo driver and make whatever queries you want. :wink:

Privacy | Site terms | Cookie preferences