Skip to content

Commit

Permalink
Generate job.input during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
akashdhruv committed Jul 24, 2024
1 parent a7431a5 commit 9cfc12c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jobrunner/__meta__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Metadata for jobrunner"""

__pkgname__ = "PyJobRunner"
__version__ = "2024.07"
__version__ = "2024.dev"
__authors__ = "Akash Dhruv"
__license__ = "Apache Software License"
__copyright__ = "Copyright (c) Akash Dhruv 2023. All Rights Reserved."
Expand Down
14 changes: 7 additions & 7 deletions jobrunner/api/_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ def setup(dirlist, verbose=False, exit_on_failure=False):
if value:
print(f'{" "*4}- {value.replace(basedir,"<ROOT>")}')

# Build inputfile
lib.CreateInputFile(config)
if config.job.input:
print(f"\n{lib.Color.purple}INPUT: {lib.Color.end}")
for value in config.job.input:
print(f'{" "*4}- {value.replace(basedir,"<ROOT>")}')

# run a bash process
lib.BashProcess(basedir, workdir, "job.setup", verbose, exit_on_failure)

Expand Down Expand Up @@ -78,13 +85,6 @@ def submit(dirlist, verbose=False, exit_on_failure=False):
# parse main dictionary
config = lib.ParseJobConfig(basedir, workdir)

# Build inputfile
lib.CreateInputFile(config)
if config.job.input:
print(f"\n{lib.Color.purple}INPUT: {lib.Color.end}")
for value in config.job.input:
print(f'{" "*4}- {value.replace(basedir,"<ROOT>")}')

# Build targetfile
lib.CreateTargetFile(config)
if config.job.target:
Expand Down

0 comments on commit 9cfc12c

Please sign in to comment.