14cc541 Update time_to_expire when compose is finished

Authored and Committed by lsedlar 4 years ago
    Update time_to_expire when compose is finished
    
    When a compose transitions to "done" or "failed", update the expiration
    time. Since we don't store the time to live for the compose, we have to
    compute it based on start time and current expiration time.
    
    This should prevent composes that took long time to finish from being
    expired right away after finishing.
    
    JIRA: FACTORY-4864
    
        
file modified
+3 -0
file modified
+19 -0