You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cluster classes accept any named parameters without error #386
I would expect an error somewhere saying that this_parameter is not a valid parameter. Instead it is silently ignored.
I think the cluster classes accept a **kwargs that is generally not used. This is probably done like this so that the parameters of JobQueueCluster can be used in the derived class. My feeling is that the **kwargs can be removed either from JobQueueCluster or the derived cluster classes. Even if I am wrong, my hope is that there must be a way to have a good error message.
Quickly jotting down some notes before I forget. The best thing I can see for now:
have derived Job classes have explicit parameter names (i.e. no kwargs). That means copying all the parameters from Job (base class) in each cluster-specific class
in JobQueueCluster add a mechanism to have an error at the cluster level that the user understands. Mechanism: either with inspect.signature or try: except TypeError: to detect that some params in the cluster **kwargs do not exist in the job_cls.
Activity
lesteve commentedon Mar 5, 2020
Quickly jotting down some notes before I forget. The best thing I can see for now:
JobQueueClusteradd a mechanism to have an error at the cluster level that the user understands. Mechanism: either with inspect.signature ortry: except TypeError:to detect that some params in the cluster **kwargs do not exist in thejob_cls.