6e0a496 Ticket 57 - Ability to disarm a persistent job from within it's callback

Authored and Committed by William Brown 7 years ago
    Ticket 57 - Ability to disarm a persistent job from within it's callback
    
    Bug Description:  While a persistent job is executing, we need to be able to
    disarm it, and view it's internals with the ns_job_get methods.
    
    Fix Description:  To enable this, we have to make an new state, INITIAL. When a
    job is made, it is in the INITIAL state, almost identical to waiting. The one
    difference is that when INITIAL&PERSIST you can be re-armed *once*.
    
    This way, the persistent job can have it's ARMED / WAITING flag managed by the
    framework, rather than being managed in the re-arm call like a non persistent
    job.
    
    This also adds a test to prove that we can disarm a job that has be called
    as persistent.
    
    https://fedorahosted.org/nunc-stans/ticket/57
    
    Author: wibrown
    
    Review by: mreynolds (Thanks!)
    
        
file modified
+7 -4
file modified
+23 -17
file modified
+53 -3