def run_cleanup_job(filename, neo4j_session, common_job_parameters): GraphJob.run_from_json( neo4j_session, read_text( 'cartography.data.jobs.cleanup', filename, ), common_job_parameters, )
def run_analysis_job(filename, neo4j_session, common_job_parameters, package='cartography.data.jobs.analysis'): GraphJob.run_from_json( neo4j_session, read_text( package, filename, ), common_job_parameters, )
def run_analysis_job(filename, session, common_job_parameters): GraphJob.run_from_json( session, read_text( 'cartography.data.jobs.analysis', filename, ), common_job_parameters, )
def run_cleanup_job( filename: str, neo4j_session: neo4j.Session, common_job_parameters: Dict, package: str = 'cartography.data.jobs.cleanup', ) -> None: GraphJob.run_from_json( neo4j_session, read_text( package, filename, ), common_job_parameters, get_job_shortname(filename), )