Netflix-Skunkworks / Scumblr

Web framework that allows performing periodic syncs of data sources and performing analysis on the identified results
Apache License 2.0
2.64k stars 317 forks source link

rake sync_all doesnt take screenshots. #59

Closed ghost closed 8 years ago

ghost commented 8 years ago

In the documentation it says "This take will run all the searches and import any new results. It will also generate screenshots of each result, if the integration with Sketchy is configured."

Unfortunately, although it does do the searches properly, I can't get to make it generate screenshots automatically.I believe Sketchy is configured correctly because I can get screenshots manually from the attachments area in Scumblr.

ahoernecke commented 8 years ago

Hey @LutherWest,

The sync_all task code basically just runs a task to run all the searches, waits an hour and then runs a task to generate screenshots... So first make sure you've waited an hour or so to scumblr a chance to request the screenshots and sketchy a chance to return them.

 # Run all searches
  Rake::Task["perform_searches"].invoke

  # Sleep 1 hours to ensure all search tasks have complete
  sleep(1.hour)

  # Generate screenshots
  Rake::Task["generate_screenshots"].invoke

Could you try running the following command directly from the command line

rake generate_screenshots
ghost commented 8 years ago

Hey @ahoernecke That's a mistake on my behalf, I apologize.

I only read the docs by the time of posting and I just logged-in to resolve the issue now that I read the code.