Implement auto-archiving of jobs
Implement auto-archiving of jobs

As luxid is taking over the handling of the job queue, it
also needs to handle the automated archiving of jobs. Here
we replicate the semantics of the current python implementation
of archiving as many jobs older than the given time as possible,
while not exceeding the given time out.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>

yiannist/ganeti,dimara/ganeti,grnet/snf-ganeti,onponomarev/ganeti,grnet/snf-ganeti,bitemyapp/ganeti,mbakke/ganeti,ganeti/ganeti,yiannist/ganeti,apyrgio/ganeti,leshchevds/ganeti,apyrgio/ganeti,leshchevds/ganeti,mbakke/ganeti,ganeti/ganeti,onponomarev/ganeti,ganeti-github-testing/ganeti-test-1,leshchevds/ganeti,andir/ganeti,dimara/ganeti,bitemyapp/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,andir/ganeti,andir/ganeti,yiannist/ganeti