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 also pass arguments to your function just like normal Python functions:app.py
Task Timeouts
You can set timeouts on tasks. Timeouts are set in seconds:Running Tasks in the Background
By default, remote functions will stop when you close your local Python process or exit your shell. You can override this behavior and keep the function running in the background by settingheadless=False
in
your function decorator.