Commit a610e350 authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

started status ofr update mrc and clean_targetcentric

parent 855ec5a7
Pipeline #45161 failed with stages
in 6 minutes and 34 seconds
...@@ -38,8 +38,10 @@ class Command(AppCommand): ...@@ -38,8 +38,10 @@ class Command(AppCommand):
super(Command, self).__init__( super(Command, self).__init__(
stdout=stdout, stderr=stderr, no_color=no_color, force_color=force_color stdout=stdout, stderr=stderr, no_color=no_color, force_color=force_color
) )
self.stdout = TaskOutWrapper(stdout or sys.stdout, task=task, std_out=True) if task:
self.stderr = TaskOutWrapper(stderr or sys.stderr, task=task, std_err=True) task.update_state(state=states.STARTED)
self.stdout = TaskOutWrapper(stdout or sys.stdout, task=task, std_out=True)
self.stderr = TaskOutWrapper(stderr or sys.stderr, task=task, std_err=True)
def add_arguments(self, parser): def add_arguments(self, parser):
parser.add_argument( parser.add_argument(
......
...@@ -30,8 +30,10 @@ class Command(AppCommand): ...@@ -30,8 +30,10 @@ class Command(AppCommand):
super(Command, self).__init__( super(Command, self).__init__(
stdout=stdout, stderr=stderr, no_color=no_color, force_color=force_color stdout=stdout, stderr=stderr, no_color=no_color, force_color=force_color
) )
self.stdout = TaskOutWrapper(stdout or sys.stdout, task=task, std_out=True) if task:
self.stderr = TaskOutWrapper(stderr or sys.stderr, task=task, std_err=True) task.update_state(state=states.STARTED)
self.stdout = TaskOutWrapper(stdout or sys.stdout, task=task, std_out=True)
self.stderr = TaskOutWrapper(stderr or sys.stderr, task=task, std_err=True)
def add_arguments(self, parser): def add_arguments(self, parser):
parser.add_argument( parser.add_argument(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment