Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/mongo-hack.
Something went wrong. Try again.
mongo-hack new.py
12345678910111213141516import modal
stub = modal.Stub("example-get-started")
@stub.function()def square(x): print("This code is running on a remote worker!") return x**2
@stub.local_entrypoint()def main(inc: str): print(inc) print("the square is", square.remote(42))