Author Topic: Big problem  (Read 1898 times)

oscacom

  • Administrator
  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Big problem
« on: December 04, 2018, 08:52:07 AM »
As you know a few days ago a process was repeated several times and we had many trainings, market, days of training camp, .. To make sure 2 days ago I put lines of code in both processes that tell me what time they are launched. The previous night everyone worked well. Without touching anything tonight, one is repeated 4 times and another 3 times. It is something that I already saw that does not depend on the code since it is the same that during the month of October has worked well every night.
Something happens on the server, or there is a hack (I doubt it), but I can not find a solution or give it to me, I do not know what to do.


Combuijs

  • Hero Member
  • *****
  • Posts: 918
  • Combuijs 2b
    • View Profile
Re: Big problem
« Reply #1 on: December 04, 2018, 09:35:38 AM »
Strange indeed.

A solution may be to guard these processes against running twice. For instance you can create a database entry for it or a local file.

brexit

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Big problem
« Reply #2 on: December 04, 2018, 12:31:05 PM »
One record in the database that stores for example the stage number  in which the last proccess was launched. You overwrite it when the proccess is launched ok again.

Then at the beggining of the proccess you see if the proccess for the current stage has already being executed. If so, you stop the proccess, if not you continue with the normal execution and at the end you modify the database record.

BetisCFF

  • Full Member
  • ***
  • Posts: 137
    • View Profile
Re: Big problem
« Reply #3 on: December 04, 2018, 06:56:04 PM »
Esperemos puedas solucionarlo oska , no tendrĂ¡ nada que ver el cambio de mes? Que haya afectado los horarios de procesos o algo? Es que ha coincidido ...

oscacom

  • Administrator
  • Hero Member
  • *****
  • Posts: 714
    • View Profile
Re: Big problem
« Reply #4 on: December 04, 2018, 08:31:24 PM »
The server provider told me solutions that I use since the beta started, they don't know why and I cannot understand as if nothing changed why now sometimes night processes run several times.

Last night I stored in database every time that a process started with different number according the process and for this I know how many times every process is launched.

I would prefer know why server launch several times the process, but if no solution for the server enterprise I have to put code lines to avoid that one time is launched don't repeat.