www.BinaryAlchemy.de :: View topic - How can I externally query the server for jobs?
 SearchSearch   RegisterRegister  ProfileProfile   UsergroupsUsergroups   Log inLog in 
If you create a new post, please use a topic that describes your problem
Documento sin título
 
How can I externally query the server for jobs?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.BinaryAlchemy.de Forum Index -> old - RR Questions - v6.x
View previous topic :: View next topic  
Author Message

lithorus



Joined: 26 Oct 2005
Posts: 71

PostPosted: Wed Dec 08, 2010 10:31 am    Post subject: How can I externally query the server for jobs? Reply with quote

I'm looking for a way to query the server through a python script about job queue and job status.

Wasn't this one of the features of RR 6 compared to RR 5?
Back to top
View user's profile Send private message

schoenberger
Site Admin


Joined: 02 Mar 2005
Posts: 3786

PostPosted: Wed Dec 08, 2010 2:13 pm    Post subject: Reply with quote

Hi

You can write plugins for sceen parsing or plugins that get executed when a job changes its status.
But you can not query jobs via python.

But you can change the whole local website into something else.
For example .xml files, which you can load into your script.
The preset files located in \resource_deliver\sub\cfg_website_templates.


regards,
_________________
Holger Schönberger
Binary Alchemy - digital materialization
Back to top
View user's profile Send private message Send e-mail

lithorus



Joined: 26 Oct 2005
Posts: 71

PostPosted: Wed Dec 08, 2010 2:30 pm    Post subject: Reply with quote

But if I would much rather prefer a more realtime update?

If I were to reverse engineer communication to the server to get a realtime update, any pointers? Smile
Back to top
View user's profile Send private message

schoenberger
Site Admin


Joined: 02 Mar 2005
Posts: 3786

PostPosted: Wed Dec 08, 2010 3:13 pm    Post subject: Reply with quote

Hi

The website is updated in regular intervals.

The TCP communication to the server is not part of the SDK as there have been multiple optimizations.
It is not simply the data block with all jobs. The job data would be huge. One job is only 50 Kb, but if you have 1000, you get 50MB which have to be send to the requester (if not reduced).
If, then you would have to consider C++, not pyhon, to get the data.

For what kind of usage do you want to update that often?
_________________
Holger Schönberger
Binary Alchemy - digital materialization
Back to top
View user's profile Send private message Send e-mail

lithorus



Joined: 26 Oct 2005
Posts: 71

PostPosted: Wed Dec 08, 2010 3:42 pm    Post subject: Reply with quote

I'm using it for a media encoder. So I need to be able to see the job in the list immediately after it has been submitted and the web site is only updated at certain intervals.

But generally it would be REALLY nice if RR would have some kind of REST or XMLRPC API for interacting with the server. I was really hoping that this would be possible in RR6.

Quote:
The TCP communication to the server is not part of the SDK as there have been multiple optimizations.
It is not simply the data block with all jobs. The job data would be huge. One job is only 50 Kb, but if you have 1000, you get 50MB which have to be send to the requester (if not reduced).

Well there are several ways to handle stuff like this. Eg. first query a list of jobs, then request job info on selected jobs.

Also there are several libraries out there for packing data in a senseable maner as binary. Eg. Pickle :
http://www.picklingtools.com/
This should make is easier to do third party requests.

Quote:
If, then you would have to consider C++, not pyhon, to get the data.

Python is perfectly fine for handling that kind of data.
Back to top
View user's profile Send private message

schoenberger
Site Admin


Joined: 02 Mar 2005
Posts: 3786

PostPosted: Wed Dec 08, 2010 5:09 pm    Post subject: Reply with quote

>I'm using it for a media encoder. So I need to be able to see the job
>in the list immediately after it has been submitted and the web site
>is only updated at certain intervals.
So you only need to know when a job has been submitted?
That would be possible with a server plugin.
Server plugins are executed when a job changes its state.
And directly after the server received a job, the job changes its state.


>Well there are several ways to handle stuff like this.
>Eg. first query a list of jobs, then request job info on selected jobs.
RR does this also as well as other data packing, data reduction, job filtering and changed time stamps.


>Python is perfectly fine for handling that kind of data.
But for the network communication data blob and uncompressing C++ would be better and faster.
_________________
Holger Schönberger
Binary Alchemy - digital materialization
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.BinaryAlchemy.de Forum Index -> old - RR Questions - v6.x All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 
Documento sin título
 



Powered by phpBB © 2001, 2002 phpBB Group



Number of shameful bots caught by Anti-Spam ACP: 1667