looping of the planned task

Created on 4 August 2023, 11 months ago
Updated 10 August 2023, 11 months ago

Hello, I have a question about my initial event - user registration, where I later schedule a task. I need to loop this task after it has been scheduled for the first time. It may sound confusing, but I hope you'll understand. I'll provide a screenshot of my ECA model for reference

πŸ’¬ Support request
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sharik_2023
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    So, you react upon user registration (insert user entity) and schedule a task for later processing. That looks OK, what's your question though?

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    I need to continue postponing the task after it has been done for the first time.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    So, how about scheduling a new task then?

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    So I was thinking about it, but will the correct queue of scheduled tasks be created

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Well, why not. When you schedule a task, it goes into the queue to be processed when the schedule is due. It doesn't matter from where the task gets scheduled. At least, it shouldn't. Doesn't hurt to just give it a try.

  • Status changed to Postponed: needs info 11 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Hello, the task couldn't be resolved successfully. Queue creation is not functioning; tasks are executing simultaneously.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Can you provide more details, please? With the given information, there isn't anything we can do.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    Of course, I have attached a photo

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    I'm really sorry, I hope to not asking too much. But to get free support in solving your own use cases, it would really be necessary to provide us with data that we can quickly reproduce and test. So, you should create the most simple model that helps you to demonstrate the issue. Then you can export that model and upload it here, together with an explanation of what the model should do and at which step it failed. Before that, you should also use the debugging described at https://ecaguide.org/eca/debugging/ and copy the debugging output here as well to show, what the issue was at the point where the model didn't do what you expected.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    I have created a simple ECA (Event-Condition-Action) model to visually understand my task. I need nodes to be created after a user registers, and then I need nodes for this user to continue being created during the run cron. In other words, this is the loop I am referring to.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Well, it's really hard to provide support under these circumstances. While I can load the uploaded model, there is no labels or annotations in there. This is then time consuming to click through all the components to see what they're doing. Please, please, please, if you want support, help us with more details.

    Also, your description doesn't really describe the steps in detail what's happening and at what step it fails. It also doesn't contain any debugging information, which I expect you to go through first, before expecting someone else (=us) to spend that time to help you solcing your problem.

    I then looked through the model and see that you haven't tried what I recommended above in #4 and #6. You have implemented a cron job which runs every minute and adds a new task to the queue every minute. That should then process those tasks, again every minute.

    What I suggested was, that you "Insert user" is scheduling a task, which is OK. And when that task is being executed, it can then add another task to the queue when it got completed. You don't need a cron to re-schedule your task.

  • πŸ‡ΊπŸ‡¦Ukraine Sharik_2023

    I noticed points #4 #6, and everything started working. I apologize for the time you spent on this.

  • Status changed to Fixed 11 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Glad, it's resolved.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024