Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job Status Notification. #199

Closed
monalisir opened this issue Jan 5, 2017 · 4 comments
Closed

Job Status Notification. #199

monalisir opened this issue Jan 5, 2017 · 4 comments

Comments

@monalisir
Copy link

Is there any way to notify client which job has been finished ?
So the client do not need to add a timer and check the status every period time.

@Digenis
Copy link
Member

Digenis commented Jan 5, 2017

There is ticket for this, #55, which is low on the priority list
until more users show interest andor someone comes up with a nice PR.

I see two alternatives.
You can either write an extension
and use it in all your deployed projects,
which should be simple for 1-2 projects,
or write a custom launcher
and configure your scrapyd to use it.

@jeromecaisip
Copy link

@Digenis If you don't mind. How are you able to add a path on the scrapyd.conf so I can use my launcher class on my module. Thanks.

@Digenis
Copy link
Member

Digenis commented Apr 16, 2019

Hi @jeromecaisip,

Make a package for your launcher module with setuptools
https://setuptools.readthedocs.io/en/latest/setuptools.html

Install it in the python environment in which scrapyd runs
eg pip install git+file:///home/jerome/proprietary-scrapyd-plugins/

Define the path in your scrapyd configuration.

[scrapyd]
launcher = proprietary_scrapyd_plugins.launcher.Launcher

This seems to be common question.
Consider contributing a tutorial to the mailing list or a wiki.

@jpmckinney
Copy link
Contributor

Closing as duplicate of #55.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants