Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Invoke job outside pyspider #67

Closed
orzFly opened this issue Jan 9, 2015 · 3 comments
Closed

Invoke job outside pyspider #67

orzFly opened this issue Jan 9, 2015 · 3 comments

Comments

@orzFly
Copy link

orzFly commented Jan 9, 2015

How about support more options (pass whole JSON from request to rpc.newtask) in this route /run? Thus we can start a job from other external scripts.

@ghost
Copy link

ghost commented Jan 9, 2015

Anytime
On Jan 9, 2015 1:28 PM, "Yeechan Lu" notifications@github.com wrote:

How about support more options (pass whole JSON from request to
rpc.newtask) in this route /run
https://github.com/binux/pyspider/blob/master/pyspider/webui/index.py#L84?
Thus we can start a job from other external scripts.


Reply to this email directly or view it on GitHub
#67.

@orzFly
Copy link
Author

orzFly commented Jan 9, 2015

Also it's nice to allow external messages received by on_message.

@binux
Copy link
Owner

binux commented Jan 10, 2015

You can use scheduler xmlrpc interface to run a project.

But using on_message is a better idea, as it's designed to receive message from somewhere. But a problem is that, on_message is implemented by sending a fake message to processor. The message queue to processor is not visitable when using all mode. Any idea?

@binux binux closed this as completed in 2471eb4 Feb 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants