A short guide on using Beta9 to run one-off functions in the cloud
from beta9 import function @function() def handler(): return {"hello world"} if __name__ == "__main__": handler.remote()
.beamignore
-d
python app.py -d '{"x": "10"}'
from beta9 import function # Set a 24 hour timeout @function(timeout=86400) def handler(): return {"hello world"} # Disable timeouts completely @function(timeout=-1) def handler(): return {"hello world"}
Was this page helpful?