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 319 forks source link

Run specific Task #240

Closed G0zsilva closed 6 years ago

G0zsilva commented 6 years ago

Hello,

First of all, I'd like to thank you for the platform I'm really enjoying.

I would like to know if you have any command to execute a specific Task, either via Rake or API.

sbehrens commented 6 years ago

Hi @acassio22,

I have a way you can run a task via the CLI

CLI

# rails c
Task.find(<id>).perform_task

id can be your task id number (found when browsing the task via the UI).

For API you can try a POST request to scumblr.your_env.com/tasks/<id>/run. That will run the task.

G0zsilva commented 6 years ago

Thanks!!!