Verified Commit 3a11fe45 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

[scord] Fix jobs being removed before completion

Fixes #155
parent 1bd2e006
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ end:
    }

    if(scord_job) {
        ADM_remove_job(scord_server, scord_job);
        ADM_job_destroy(scord_job);
    }

    if(scord_reqs) {
+0 −9
Original line number Diff line number Diff line
@@ -919,15 +919,6 @@ ADM_job_create(uint64_t id, uint64_t slurm_id) {
    return adm_job;
}

/**
 * Destroy a ADM_job_t created by ADM_job_create().
 *
 * @remark This function is not actually part of the public API, but it is
 * useful to have for internal purposes
 *
 * @param[in] reqs The ADM_job_t to destroy.
 * @return ADM_SUCCESS or corresponding error code.
 */
ADM_return_t
ADM_job_destroy(ADM_job_t job) {
    ADM_return_t ret = ADM_SUCCESS;