DEV Community

Moving your cron job to the cloud with Google Cloud Functions

Dustin Ingram on May 03, 2019

A cron job is a way to run a program on a server at a specified interval. This is often a small script that does some repeatable task, like collect...
Collapse
 
mvergarair profile image
Matías Vergara Irarrázaval

Hey Dustin, good article. Just wondering, how do you make the CF url redirect to twitter?

Collapse
 
di profile image
Dustin Ingram

Cloud Functions just uses Flask under the hood, so I just did:

from flask import redirect

def send_pythons(request):
    return redirect("https://twitter.com/di_codes")
Collapse
 
jfcardenas profile image
jfcardenas

Hello Dustin, thanks for the article, but I'm wondering about the send_email function, how does it work, is it a function of google cloud or gmail related?