|
a |
|
b/scripts/qiita-private-plugin |
|
|
1 |
#!/usr/bin/env python |
|
|
2 |
|
|
|
3 |
# ----------------------------------------------------------------------------- |
|
|
4 |
# Copyright (c) 2014--, The Qiita Development Team. |
|
|
5 |
# |
|
|
6 |
# Distributed under the terms of the BSD 3-clause License. |
|
|
7 |
# |
|
|
8 |
# The full license is in the file LICENSE, distributed with this software. |
|
|
9 |
# ----------------------------------------------------------------------------- |
|
|
10 |
|
|
|
11 |
import click |
|
|
12 |
|
|
|
13 |
from qiita_ware.private_plugin import private_task |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
@click.command() |
|
|
17 |
@click.argument('url', required=True) |
|
|
18 |
@click.argument('job_id', required=True) |
|
|
19 |
@click.argument('output_dir', required=True) |
|
|
20 |
def execute(url, job_id, output_dir): |
|
|
21 |
"""Executes the task given by job_id |
|
|
22 |
|
|
|
23 |
The parameters url and output_dir are ignored, but they are added for |
|
|
24 |
compatibility with the plugin system. |
|
|
25 |
""" |
|
|
26 |
private_task(job_id) |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
if __name__ == '__main__': |
|
|
30 |
execute() |