Skip to content

Commit dc98381

Browse files
committed
Job Tag Behavior: Apply "Has Files" tag if job has input OR output files. See #68.
1 parent 99dfe56 commit dc98381

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/job.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,10 @@ class Jobs {
12531253
delete combo_job.procs;
12541254
delete combo_job.conns;
12551255

1256-
// add special tag if job produced output files
1257-
if (combo_job.files && combo_job.files.length) combo_job.tags.push('_files');
1256+
// add special tag if job has input or output files
1257+
if ((combo_job.files && combo_job.files.length) || (combo_job.input && combo_job.input.files && combo_job.input.files.length)) {
1258+
combo_job.tags.push('_files');
1259+
}
12581260

12591261
// update event state, for UI hints and such
12601262
if (!job.retried && (job.type != 'adhoc')) {

0 commit comments

Comments
 (0)