Skip to content

StopJob

Erwan KOFFI edited this page Jun 11, 2018 · 1 revision

Stop job

This task allows you to stop an existing job on Data Fabric.

The task can be launched with the command gradle stopJob.

Configuration

The configuration job allows to stop multiple jobs at once.

Configuration object

Once your saagie object is available on your project with the server correctly set up, you need to fill the jobs list with ids of the ones to be stopped.

saagie {
    server {...}

    jobs {[
            {
                id = <job_id>
                idFile = <file_name>
            }
        ]}
}

You can stop any type of job on the platform.

Properties explanation

  • id (mandatory)

    • The job id on Data Fabric to update. If provided, will override idFile's id.
    • type: int
    • default: 0
  • idFile

    • This property allow you to stop the job which id is into the provided file. The complete path has to be provided and write rights on file and directory must be granted. If id property is set it will override this value.
    • type: string
    • default:

Examples

Starting one job

saagie {
    server {...}

    jobs {[
            {
                id = 666
            }
        ]}
}

Starting multiples jobs

saagie {
    server {...}

    jobs {[
            {
                idFile = './jobFile.id'
            },
            {
                id = 666
            }
        ]}
}