Update task.py

Adding qc status changing from the restuls of has_inputs()