Running Functions Remotely
A short guide on using Beam to run one-off functions in the cloud
Running a function remotely
You can add a decorator to any Python function to run it remotely on Beam:
app.py
By default, Beam will sync all the files in your working directory to the
remote container. This allows you to use the files you have locally while
developing. If you want to prevent some files from getting uploaded, you can
create a .beamignore
.
Passing function args
You can pass JSON arguments to your function, using the -d
command in the CLI:
Task timeouts
You can set timeouts on tasks. Timeouts are set in seconds:
Was this page helpful?