cht-core icon indicating copy to clipboard operation
cht-core copied to clipboard

Outbound push cron config error

Open njuguna-n opened this issue 1 year ago • 3 comments

Job commented on the forum that outbound push tasks are failing with Unable to push ***** for ped_benchmark_outbound because this outbound config no longer exists, clearing task.

The steps for reproduction are:

  1. Configure outbound as seen below:

Image

  1. Create records and trigger outbound at minute 11 all the way to 20. You will notice that your records will be saved and not pushed, see the above logs. An outbound task will be generated
  2. Within the same timeframe you will see a message Unable to push ***** for ped_benchmark_outbound because this outbound config no longer exists, clearing task

njuguna-n avatar Mar 19 '24 12:03 njuguna-n

As mentioned in my comment the only way I have been able to reproduce this error is by changing the configuration before the task are processed. Even with the reproduction steps above, the tasks are processed as expected. I am still experimenting with the timings and config to see if I can consistently reproduce the error.

njuguna-n avatar Mar 19 '24 12:03 njuguna-n

@njuguna-n Have you tried adding two configs with different cron settings - so that they would never run at the same time, and making it so one config gets its turn while the other does not, and then check that the other config jobs are still present? This is the only idea I have right now.

dianabarsan avatar Mar 20 '24 09:03 dianabarsan

Thanks for that suggestion @dianabarsan. I was able to reproduce the error and now working on fixing the bug. image

njuguna-n avatar Mar 21 '24 09:03 njuguna-n

@njuguna-n I added this issue under 4.12 milestone. Please change it to 4.11 if you think (and it's possible) this could be released earlier. cc @witash

andrablaj avatar Sep 19 '24 10:09 andrablaj