Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

yes you can add jobs with sql in a transaction, e.g.

SELECT graphile_worker.add_job( 'send_email', json_build_object( 'to', 'someone@example.com', 'subject', 'graphile-worker test' ) );

(can also use the PERFORM statement instead of SELECT)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: