Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Server jobs keep turning to disabled
Fri, Sep 18 2026 12:41 PMPermanent Link

Mario Enríquez

Open Consult

Hello,

I got few workstations that run a Edbsrvr Job every 15~20 minutes. The main function of the job is to copy some files across Local <-> Remote stores and for the most part it works fine, except that from time to time, for some reason, the Job is turned to Disabled with no error message.  Has anyone had seem this behavior? I've tried check the logs at Edbsrvr but nothing relevant shows up.

Has anyone had this happen to you? Any solution?

Regards,
Mario
Fri, Sep 18 2026 3:30 PMPermanent Link

Terry Swiers

Hi Mario,

I've seen this periodically, but never investigated it as it happens so infrequently.  Out of curiosity, I decided to investigate it today.

What I found is that EDB will disable a job after 10 failures and there are issues associated with this.

Bug/Issue #1: EDB doesn't enter anything into the log file indicating that the job was disabled.  Probably should call this an oversight rather than a bug as it just makes it more difficult to track it down.

Bug #2:  The failure retry count never gets reset if the job completes successfully after a failure.   So all it takes is 10 failures across the duration of the server uptime to cause the job to be disabled.

If you have the source code for EDB and you are building  your own server, you can add the following to the TEDBJob class in edbconfig.pas:

    procedure TEDBJob.ResetRunRetries;
    begin
       FRunRetries:=0;
    end;

and then find TEDBLocalSessionManager.StopJob in edblocal.pas and call TempJob.ResetRetries; just after TempJob.InProgress:=False; in the "if JobSuccess" path.

If you are NOT building your own server, you can work around the issue in two ways:  

1. Brute force resetting the retry counts by restarting the server engine periodically.
2. Create another job that runs periodically that disables and then re-enables the job as this will reset the retry count.
Mon, Sep 21 2026 2:12 PMPermanent Link

Mario Enríquez

Open Consult

Thank you very much Terry, I'll take the "Monitoring Job" alternative.

Regards,
Mario
Image