def METHOD_NAME(self):
    pipeline_instance = MagicMock()
    pipeline_instance.is_started = True
    pipeline_instance.is_finished = True
    dispatcher = TaskCommandDispatcher(
        engine_ver=1, taskflow_id=1, pipeline_instance=pipeline_instance, project_id=1
    )
    result = dispatcher.render_current_constants_v1()
    self.assertEqual(
        result,
        {"result": False, "data": None, "code": err_code.INVALID_OPERATION.code, "message": "task is not running"},
    )