subjobs are sometimes aborted on server restart

Description

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

None

Status

Assignee

Unassigned

Reporter

Václav Chlumský

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Affects versions

Priority

High
Configure