I want to implement slack slash command that has to process fucntion pipeline which takes roughly 30 seconds to process. Now since Slack slash commands only allows 3 seconds to respond, how to go about implementing this. I referred this but don't how to implement it. 
Please hold up with me. I am doing this first time.
This is what I have tried. I know how to respond with ok status within 3 seconds but I don't understand how to again call pipeline
import requests
import json
from bottle import route, run, request
from S3_download import s3_download
from index import main_func
@route('/action')
def action():
        pipeline()
        return "ok"
def pipeline():
        s3_download()
        p = main_func()
        print (p)
if __name__ == "__main__":
      run(host='0.0.0.0', port=8082, debug=True)
I came across this article. Is using AWS lambda the only solution? Can't we do this completely in python?
 
     
     
    