コード例 #1
0
def job_all(ctx):
    """Create new harvest jobs for all active sources.

    """
    flask_app = ctx.meta["flask_app"]
    with flask_app.test_request_context():
        result = utils.job_all()
    click.echo(result)
コード例 #2
0
ファイル: harvester.py プロジェクト: datopian/ckanext-harvest
 def create_harvest_job_all(self):
     print(utils.job_all())