Skip to content

Instantly share code, notes, and snippets.

View r614's full-sized avatar

roshan r614

View GitHub Profile
@r614
r614 / modal.md
Created September 7, 2024 00:46
modal job sync

Modal Job Sync

Launching a job

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 
blah