Hints serverside#42
Conversation
aldbr
left a comment
There was a problem hiding this comment.
Thank you @Stellatsuu, I think you are on the right track!
Some production tests are broken from this (do not merge now), I can't see why, maybe the new $import in cwl worflows I'm not sure of.
I haven't checked carefully but it is likely coming from https://github.com/aldbr/dirac-cwl-proto/blob/e97b83d0d65a46042fa9b9fbb725b5bbed498665/src/dirac_cwl_proto/production/__init__.py#L194-L198
Can you try to adjust all the SubmissionModels? If you adjust them all, then may be the errors will go away.
Should we describe the execution-hooks like this in the *.yaml (with dirac: prefix)?
I think what you did is fine!
I'm not sure of the call to TransformationExecutionHooksHint.from_cwl(transformation.task), I had some struggle with Mypi because it takes it as an ExecutionHooksHint. I don't think we have to rewrite from_cwl but right now I don't see a workaround for that?
I also tried (in local) calling extract_dirac_hints and modifying it to match TransformationExecutionHooksHint class, same problem.
See my comment below about Self 🙂
Note: may be TransformationSubmissionModel and ProductionSubmissionModel will be very similar in the end, let's see if we can/should refactor them in the end.
|
Thanks @aldbr for the quick review ! I will check all that 😄 |
| num_points: 2000 # Override default 1000 from CWL | ||
| - class: dirac:ExecutionHooksHint | ||
| configuration: | ||
| num_points: 2000 # Override default 1000 from CWL |
There was a problem hiding this comment.
What does it mean to override here? It doesn't override anything anywhere, should it?
aldbr
left a comment
There was a problem hiding this comment.
Thanks @Stellatsuu, I just have a few comments 🙂
Closes #31
Hints are now handled by the server.
How to create/use hints
In
CWLonly:Using an external file:
In
CWL:In
my_hints.yaml: