From c5f1610bb5f1f5c3fe20da475296365e0c10b19c Mon Sep 17 00:00:00 2001 From: Riccardo Murri Date: Fri, 8 Jul 2016 13:26:25 +0200 Subject: [PATCH] Fix docstring of `SessionBasedScript.new_tasks()` --- gc3libs/cmdline.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/gc3libs/cmdline.py b/gc3libs/cmdline.py index c2021e04..b2b0a496 100755 --- a/gc3libs/cmdline.py +++ b/gc3libs/cmdline.py @@ -2128,20 +2128,7 @@ def pre_run(self): def new_tasks(self, extra): """ Iterate over jobs that should be added to the current session. - Each item yielded must have the form `(jobname, cls, args, - kwargs)`, where: - - * `jobname` is a string uniquely identifying the job in the - session; if a job with the same name already exists, this - item will be ignored. - - * `cls` is a callable that returns an instance of - `gc3libs.Application` when called as `cls(*args, **kwargs)`. - - * `args` is a tuple of arguments for calling `cls`. - - * `kwargs` is a dictionary used to provide keyword arguments - when calling `cls`. + Each item yielded must be a valid `Task`:class: instance. This method is called by the default `process_args`:meth:, passing `self.extra` as the `extra` parameter.