Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #1301
Closed
Open
Issue created May 23, 2024 by dbeltran@dbeltranMaintainer

Flexible debug by adding inline custom_templates

This issue is to add a customizable template for each job.

This is mainly useful for debugging, although it can be used to write short scripts.

The idea of adding is that instead of using PROJECT_TYPE: None, in which the default code is sleep 5 for each template, use this to have different sleep times, force jobs to fail, etc, or even only "skip" some workflow jobs.

Usage:

JOBS:
 JOB:
   FILE: bla.sh
   TYPE: bash
   CUSTOM_TEMPLATE: "sleep 5" 
 PYTHON_JOB:
   FILE: bla.sh
   TYPE: python3
   CUSTOM_TEMPLATE: |
      from time import sleep
      sleep(10)

The goal is to have a faster debug process

Edited May 23, 2024 by dbeltran
Assignee
Assign to
Time tracking