Skip to content
Snippets Groups Projects

Add a function to the template rendering for creating a Condor job name from an arbitrary string

Merged Daniel Lyons requested to merge add-condor-jobname-function into main
1 unresolved thread

You can now add the following kind of code to the template to make it transform an arbitrary string into a Condor DAGman JobName:

{{#make_condor_jobid}}ANYTHING{{/make_condor_jobid}}

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
147 152 def from_json(cls, json: dict) -> any:
148 153 return WorkflowTemplate(json["filename"], json["content"])
149 154
155 @staticmethod
156 def make_condor_jobid(content: str, renderer: Callable[[str], str]):
  • I was abbreviating to cover all the use cases. Since it's setting the job's name I suggest something related to that

  • Nathan Bockisch approved this merge request

    approved this merge request

  • Daniel Lyons added 1 commit

    added 1 commit

    • e06ff955 - Renaming to make_condor_jobname

    Compare with previous version

  • Charlotte Hausman approved this merge request

    approved this merge request

  • Daniel Lyons enabled an automatic merge when the pipeline for e06ff955 succeeds

    enabled an automatic merge when the pipeline for e06ff955 succeeds

  • Jim Sheckard approved this merge request

    approved this merge request

  • merged

  • Please register or sign in to reply
    Loading