示例#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
 def create_harvest_job_all(self):
     print(utils.job_all())