How to use the Beta9 primitives run code in the cloud.
function()
decorator to run it on the cloud.local()
.remote()
.map()
app.py
with the name of your file.
.map()
method in main()
spawns 5 remote containers, but that number is arbitrary.
You can change 5
to 500
, and invoke this function again — you’ll see 500 containers spin up almost instantly.