Workers are extremely flexible, and one thing they can do is load a webpage just like you expect with a CRON to do. This is useful if you need to do a web request so your site can do processing or update stuff.

v.content=s.http_request_get("urlhere")
s.echo("Ran request")


The reason we also print a message is to have something show up in the events history. You can also just echo the response from the page but if that page is large it can eat CPU time.

v.content=s.http_request_get("urlhere")
s.echo(v.content)
Was this article helpful?
Cancel
Thank you!