e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1,polyaxon/dockerizer/management/commands/build.py,Command,handle,#Command#,22

Before Change


            return

        // Building the docker image
        try:
            status = builder.build(build_job=build_job)
        except DockerException as e:
            builder.send_status(
                build_job=build_job,
                status=JobLifeCycle.FAILED,
                message="Failed to build job %s" % e)
            _logger.exception("Failed to build job %s", e)
            status = False
        except Exception as e:  // Other exceptions
            builder.send_status(
                build_job=build_job,
                status=JobLifeCycle.FAILED,
                message="Failed to build job %s" % e)
            _logger.exception("Failed to create build job %s", e)
            status = False

        if not status:
            builder.send_status(
                build_job=build_job,
                status=JobLifeCycle.FAILED,

After Change



        // Building the docker image
        error = {}
        try:
            status = builder.build(build_job=build_job)
            if not status:
                error = {
                    "raised": True,
                    "message": "Failed to build job."
                }
        except DockerException as e:
            error = {
                "raised": True,
                "traceback": traceback.format_exc(),
                "message": "Failed to build job encountered an {} exception".format(
                    e.__class__.__name__)
            }
        except Exception as e:  // Other exceptions
            error = {
                "raised": True,
                "traceback": traceback.format_exc(),
                "message": "Failed to build job encountered an {} exception".format(
                    e.__class__.__name__)
            }

        if error.get("raised"):
            builder.send_status(
                build_job=build_job,
                status=JobLifeCycle.FAILED,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: polyaxon/polyaxon
Commit Name: e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/dockerizer/management/commands/build.py
Class Name: Command
Method Name: handle


Project Name: PaddlePaddle/edl
Commit Name: ed9fb224f3aa4336d066cbbe4b9abf26b24f8535
Time: 2020-09-02
Author: weibao.gong@gmail.com
File Name: python/edl/collective/launch.py
Class Name:
Method Name: edl_barrier


Project Name: tensorflow/minigo
Commit Name: 6f6b0b30a04d95a26b297c219454bcd51f4f793e
Time: 2018-07-15
Author: andrew.m.jackson@gmail.com
File Name: rl_loop.py
Class Name:
Method Name: train