reana_workflow_controller/utils.py
def remove_workflow_jobs_from_cache(workflow):
    """Remove any cached jobs from given workflow.

    :param workflow: The workflow object that spawned the jobs.
    :return: None.
    """
    jobs = Session.query(Job).filter_by(workflow_uuid=workflow.id_).all()
    for job in jobs:
        job_path = remove_upper_level_references(
            os.path.join(workflow.get_workspace(),
                         '..', 'archive',
                         str(job.id_)))
        Session.query(JobCache).filter_by(job_id=job.id_).delete()
        remove_workflow_workspace(job_path)
    Session.commit()
Remove any cached jobs from given workflow.

    :param workflow: The workflow object that spawned the jobs.
    :return: None.
    
Remove any cached jobs from given workflow.
Remove any cached jobs from given workflow .
def remove_workflow_jobs_from_cache(workflow):
    jobs = Session.query(Job).filter_by(workflow_uuid=workflow.id_).all()
    for job in jobs:
        job_path = remove_upper_level_references(
            os.path.join(workflow.get_workspace(),
                         '..', 'archive',
                         str(job.id_)))
        Session.query(JobCache).filter_by(job_id=job.id_).delete()
        remove_workflow_workspace(job_path)
    Session.commit()
def remove_workflow_jobs_from_cache ( workflow ) : jobs = Session . query ( Job ) . filter_by ( workflow_uuid = workflow . id_ ) . all ( ) for job in jobs : job_path = remove_upper_level_references ( os . path . join ( workflow . get_workspace ( ) , '..' , 'archive' , str ( job . id_ ) ) ) Session . query ( JobCache ) . filter_by ( job_id = job . id_ ) . delete ( ) remove_workflow_workspace ( job_path ) Session . commit ( )
Remove any cached jobs from given workflow.
Remove any cached jobs from given workflow .
"""Remove any cached jobs from given workflow.

    :param workflow: The workflow object that spawned the jobs.
    :return: None.
    """
None
workflow
The workflow object that spawned the jobs.
The workflow object that spawned the jobs .