Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if at least 1 task is generated in _generate_task_ #107

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions maflib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,20 @@ def _generate_tasks(self, call_object):

parameter_lists = new_lists

task_is_generated = False
for parameter_list in parameter_lists:
for parameter in call_object.parameters:
if any(p.conflict_with(parameter) for p in parameter_list):
continue
self._generate_task(call_object, parameter_list, parameter)
task_is_generated = True

if not task_is_generated:
source = ' '.join(call_object.source)
target = ' '.join(call_object.target)
waflib.Logs.warn(
'No task is generated for %s -> %s. Parameter setting for this task might be unintended?' %
(source, target))

def _generate_task(self, call_object, source_parameter, parameter):
# Create target parameter by merging source parameter and task-gen
Expand Down