I am working with the Pybossa webhooks, and found this plugin to analyse the Pybossa results in real-time. I forked it but not getting how it is to be executed.
Currently, I am executing it as follows:
python app.py test_project
where test_project is my project_short_name. But, it is reverting me to index.html page of this repository.
I found it ! Look into
pybossa.model.event_listeners
you will findpush_webhook
function, it push webhook into queue. And it's called byon_taskrun_submit, on_auditrun_submit
function in the same file.If you really want to execute webhook manually, look into
pybossa.jobs
, you will findwebhook
function, it's where the webhook execute. You can call it manually like this:I put this function in cli.py so I can call it handily.