mass_driver.activity_run

Main activities of Mass-Driver: For each repo, clone it, then scan/migrate it

Variants for sequential or parallel

Module Contents

Functions

sequential_run

Run the main activity SEQUENTIALLY: over N repos, clone, then scan/patch

thread_run

Run the main activity THREADED: over N repos, clone, then scan/patch

per_repo_process

Process a single repo, in-thread

Data

LOGGER_PREFIX

API

mass_driver.activity_run.LOGGER_PREFIX = 'run'
mass_driver.activity_run.sequential_run(activity: mass_driver.models.activity.ActivityLoaded, repos: mass_driver.models.repository.IndexedRepos, cache: bool) mass_driver.models.activity.ActivityOutcome[source]

Run the main activity SEQUENTIALLY: over N repos, clone, then scan/patch

mass_driver.activity_run.thread_run(activity: mass_driver.models.activity.ActivityLoaded, repos: mass_driver.models.repository.IndexedRepos, cache: bool) mass_driver.models.activity.ActivityOutcome[source]

Run the main activity THREADED: over N repos, clone, then scan/patch

mass_driver.activity_run.per_repo_process(repo_id, repo, activity, logger, cache_folder)[source]

Process a single repo, in-thread