Skip to content

Is there a way to add new task via SQL directly? #735

Answered by ewjoachim
paulzakin asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

It should be possible using the procedures that procrastinate creates, though it's not part of the official API and as such it's undocumented. Note that it's unlikely to break suddenly due to our migration rules, but you'll need to test that it works as expected when you do a major upgrade (if there even is one)

CREATE FUNCTION procrastinate_defer_job(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulzakin
Comment options

Answer selected by paulzakin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants