Hi I would like to understand the

Hi I would like to understand the lifecycle of workflow, I am trying to replace cron by workflow, so I've done something like
run(){
while(true){
await step.do(...)

await step.sleep(5 min)
}
}
run(){
while(true){
await step.do(...)

await step.sleep(5 min)
}
}
locally it seems to work, but on remote I am getting internal error without any message or log. So I am wondering if it's possible to do it that way. also I am experiencing another internal error while I am trying to restart instance. So I am not sure if it depends on my approach or workflows are just like beta..
12 Replies
avenceslau
avenceslau3d ago
What do you mean by remote?
kleinpetr
kleinpetrOP3d ago
remote account
avenceslau
avenceslau3d ago
Do you mind sharing the actual workflow code?
kleinpetr
kleinpetrOP3d ago
No description
kleinpetr
kleinpetrOP3d ago
ok, let me simplify it a bit. but here you can see that no step was triggered (if logs are working..)
avenceslau
avenceslau3d ago
and if you can please use /link here on discord to link your account
kleinpetr
kleinpetrOP3d ago
linked
avenceslau
avenceslau3d ago
Can you also send me the name of the workflow (or the link to an instance that failed) I can get the workflow name and instance id from there
kleinpetr
kleinpetrOP3d ago
I was able to terminate it via cli.. but I am not able to restart it still workers/workflows/dbu-txs-sync-account-payments-workflow-760/instance/2d86aae3-3c8e-4653-a855-1b0fde30f154 I would share it the code with you via DM if it helps
avenceslau
avenceslau3d ago
feel free to send it my way
kleinpetr
kleinpetrOP3d ago
also fyi, first time I tried to restart I've got this error
No description
kleinpetr
kleinpetrOP3d ago
we use Alchemy for deployment, and unfortunately we set a bad className thanks for investigation @avenceslau

Did you find this page helpful?