lee
lee•6mo ago

scheduler is good but you should be able

scheduler is good but you should be able to ctx.runMutation from any action. If it's not working can you start a #support-community thread?
4 Replies
Hmza
Hmza•6mo ago
if you are interested in the error i was facing before. changed to scheduler and worked all fine. my process was was using node with this package 'ssh2-sftp-client' to download files from a sftp server and then upload it to convex storage and all purpose of mutation was to insert logs into a table. that's it. i was getting this in convex logs when mutation was failing. scheduler worked. now i changed back to mutation and no errors.
sftpThing:sftpGetLatestFiles
error
Error
at performAsyncSyscall (convex:/user/sftpThing.js:948:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runMutation (convex:/user/sftpThing.js:1051:22)
at convex:/user/sftpThing.js:1613:11
at async all (<unknown location>)
at async handler (convex:/user/sftpThing.js:1620:9)
at async invokeFunction (convex:/user/sftpThing.js:1335:14)
at async invokeAction (convex:/user/sftpThing.js:1395:18)
at async executeInner (bundledFunctions.js:31572:17)
at async execute (bundledFunctions.js:31516:19)
sftpThing:sftpGetLatestFiles
error
Error
at performAsyncSyscall (convex:/user/sftpThing.js:948:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runMutation (convex:/user/sftpThing.js:1051:22)
at convex:/user/sftpThing.js:1613:11
at async all (<unknown location>)
at async handler (convex:/user/sftpThing.js:1620:9)
at async invokeFunction (convex:/user/sftpThing.js:1335:14)
at async invokeAction (convex:/user/sftpThing.js:1395:18)
at async executeInner (bundledFunctions.js:31572:17)
at async execute (bundledFunctions.js:31516:19)
@lee
lee
leeOP•6mo ago
that error is unfortunately opaque 😢
Hmza
Hmza•6mo ago
yeah that's why. lets call it convex magic for now lol. i have multiple of these though. i'll let you know if i get something again!
lee
leeOP•6mo ago
It kind of looks like the error you get on a transient network blip, which can happen for node since it runs separately from other convex functions. But we should make the error better

Did you find this page helpful?