Skip to content

Commit

Permalink
Add a flush, for #63
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Dec 6, 2019
1 parent c3bbcde commit 08e6a39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Jinja2==2.10.1
jsonschema==3.0.1
jupyter-client==5.3.1
jupyter-core==4.5.0
kafka-python==1.4.6
kafka-python==1.4.7
kiwisolver==1.1.0
lockfile==0.12.2
luigi==2.8.7
Expand Down
4 changes: 4 additions & 0 deletions tasks/crawl/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ def run(self):
else:
logger.error("Don't understand crawl frequency " + schedule['frequency'])

logger.info("Closing the launcher to ensure everything is pushed to Kafka...")
self.launcher.flush()
#self.launcher.close()

logger.info("Completed. Launches this hour: %s" % self.i_launches)
# Record that all went well:
self.output().touch()
Expand Down

0 comments on commit 08e6a39

Please sign in to comment.