oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

Add User job hangs in the delayed_job queue indefinitely #9

Closed oveits closed 8 years ago

oveits commented 8 years ago

On CSL11 (OSV V8R1), I have created a user with the parameters shown in following screenshot: image

This job is running hanging indefinitely (hours), before I have stopped it manually. Moreover, the queue was blocked by this job; i.e. no further job was started.

oveits commented 8 years ago

The reason was, that the Delayed_Job process was stopped:

provisioningengine@ProvisioningEngine:~/ProvisioningEnginev0.5.15$ ./status
Web Portal (productive):   running (PID=22822) on port 3000
Web Portal (development):   running (PID=19406) on port 3001
Delayed Jobs: not running

After starting delayed jobs again, everything worked again. I hope, this was a one-time issue.

A workaround could be to periodically check the status of Delayed Jobs on productive machines, and restart it automatically, if it is down. I will open an enhancement request for this.

oveits commented 8 years ago

Is was not the commit above, which has closed this issue, but a manual restart of the delayed jobs.