subjobs are sometimes aborted on server restart


The ji_qrank attribute is defined as INTEGER in the postgres database. It means the range is -2147483648 to +2147483647 in the database.

The JOB_ATR_qrank job attribute is the long type and the time in msec is stored into this attribute. The msec is above 1551186171000 now.

Storing this attribute to the database results in misleading qrank. Once the server is restarted, the order of recovered jobs is sorted by the qrank. The inconsistency in data type may lead to reading subjob before parentjob, which leads to aborting the subjob because no parent job is read yet.

Acceptance Criteria

Your pinned fields
Click on the next to a field label to start pinning.




Václav Chlumský

Pull Request URL