import modal
remote_fn = modal.Function.lookup(<namespace>, <fn_name>)
fn_call = remote_fn.spawn(job_id)
unique_job_id = fn_call.object_id # store this in db
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup: | |
# uv pip install playwright plyer | |
# playwright install | |
from playwright.sync_api import sync_playwright | |
import time | |
import random | |
from plyer import notification | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blah |