Skip to content

Conversation

@djm
Copy link
Owner

@djm djm commented Jan 14, 2015

Implements #1.

djm added 5 commits January 14, 2015 15:43
They are aliased so can be imported by client code at the root by using
``scrapyd.RUNNING`` etc.
It takes a project name & job id and returns the job status for a single
job; the result can be one of the following: 'running', 'finished' or 'pending'.

Unlike the other API methods, this method does not have a 1 to 1 mapping with
an actual Scrapyd endpoint and as such, is derived. It utilises Scrapyd's
list_jobs endpoint to receive the status for a single job, returning False
if no status for that id could be found.
Now denotes that the state variables can be imported for comparison.
This means the method only returns strings, rather than a mixture of strings
on success and bool on failure. The docs already state the correct return.
djm added a commit that referenced this pull request Jan 15, 2015
Add a method which retrieves a given job's current status.
@djm djm merged commit 76fe1fa into master Jan 15, 2015
@djm djm deleted the feature/add-job-status-call branch January 15, 2015 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants