Skip to content

Commit

Permalink
Merge 54452a7 into beabb68
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzdemirbasci committed Aug 10, 2021
2 parents beabb68 + 54452a7 commit afdd1c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions hepcrawl/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def _prepare_payload(self, spider):
job_id=os.environ['SCRAPY_JOB'],
results_uri=os.environ['SCRAPY_FEED_URI'],
results_data=self.results_data,
log_file=None,
)
payload['errors'] = [
{'exception': str(err['exception']), 'sender':str(err['sender'])}
Expand Down
2 changes: 1 addition & 1 deletion hepcrawl/testlib/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Config(object):


@app.task
def submit_results(job_id, errors, results_uri, results_data=None):
def submit_results(job_id, errors, results_uri, log_file=None, results_data=None):
"""Receive the submission of the results of a crawl job."""

def _extract_results_data(results_path):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
'sentry': [
'raven~=6.0,>=6.2.1',
'scrapy-sentry',
'sentry-sdk==1.3.0',
],
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"errors": [],
"results_uri": "scrapy_feed_uri",
"log_file": "None",
"results_data": [
{
"_collections": ["Literature"],
Expand Down

0 comments on commit afdd1c4

Please sign in to comment.