Performing Operations on a Job

After a job is created, you can perform operations on the job as required.

Editing a Job

You can edit a created job, for example, by modifying the SQL statement, job name, job description, or job configurations.

  1. In the navigation tree on the left pane of the CS management console, choose Job Management to switch to the Job Management page.
  2. In the row where the job you want to edit is located, click Edit in the Operation column to switch to the Edit page.
  3. Edit the job as required.

    For details about the Edit page for Flink streaming SQL jobs, see Creating a Flink Streaming SQL Job.

    For details about the Edit page for Flink streaming SQL edge jobs, see Creating a Flink Streaming SQL Edge Job.

    For details about the Edit page for user-defined Flink jobs, see Creating a User-Defined Flink Job.

    For details about the Edit page for user-defined Spark jobs, see Creating a User-Defined Spark Job.

Starting Jobs

To start jobs that have been created or stopped, follow the following steps:

  1. In the navigation tree on the left pane of the CS management console, choose Job Management to switch to the Job Management page.
  2. Use either of the following methods to start jobs:

    • Starting a single job

      Locate the row where the job you want to start resides and click Start in the Operation column. Alternatively, you can select the row where the job you want to start resides and click OK in the upper left of the job list.

    • Batch starting jobs

      Select the rows where the jobs you want to start reside and click Start in the upper left of the job list.

  1. On the Job Configurations page, click OK.

    After a job is started, its status is displayed in the Status column on the Job Management page.

Job Configurations

Upon submitting a job or starting a job, you need to confirm the job prices.

  1. You will enter the Job Configurations page after submitting a job on the Job Management page or after starting a job on the Job Management page.

    • Submit a job on the Edit page
      1. In the navigation tree on the left pane of the CS management console, choose Job Management to switch to the Job Management page.
      2. In the row where the job you want to edit is located, click Edit in the Operation column to switch to the Edit page.
      3. Edit SQL statements and configure parameters on the Running Parameters page.
      4. Click Submit to switch to the Job Configurations page.
    • Start a job on the Job Management page
      1. In the navigation tree on the left pane of the CS management console, choose Job Management to switch to the Job Management page.
      2. In the row where the job you want to start is located, click Start in the Operation column to switch to the Job Configurations page.

    On the Job Configurations page, you can click Pricing details to view the product pricing details.

  2. (Optional) Click Price Calculator in the lower right corner.

    1. You can view the pricing details by clicking Pricing details.
    2. Find out how the price adds up on the Price Calculator page.

    On the Price Calculator page, you can obtain the optimal product configuration through multiple tries.

  3. (Optional) Click Cancel to cancel the operation of running a job.
  4. Click OK to submit the job.

Stopping Jobs

You can stop a job in the Running or Submitting state.

  1. In the navigation tree on the left pane of the CS management console, choose Job Management to switch to the Job Management page.
  2. Stops jobs.

    Perform either of the following methods to stop jobs:
    • Stopping a job

      Locate the row where the job you want to stop resides and click More > Stop in the Operation column.

      Alternatively, you can select the row where the job you want to stop resides and click Stop in the upper left of the job list.

    • Stopping jobs in batches

      Locate the rows where the jobs you want to stop reside and click Stop in the upper left of the job list.

  3. In the displayed dialog box, click OK.

    • Before stopping a job, you can create a savepoint to save the job status. When you start the job again, you can choose whether to restore the job from the savepoint.
    • indicates to create a savepoint. indicates that no savepoint is created. By default, the savepoint function is disabled.
    • The savepoint lifecycle describes a savepoint goes through from when it is created for a job that is to be stopped until it finally is deleted. The savepoint is automatically deleted after the job is restarted.
    During the procedure of stopping jobs, the following Status settings may appear:
    • Stopping: indicates that the job is being stopped.
    • Stopped: indicates that the job is stopped successfully.
    • Stop failed: indicates that the job failed to be stopped.

Deleting Jobs

If you do not need to use a job, perform the following operations to delete it. A deleted job cannot be restored. Therefore, exercise caution when deleting a job.

  1. In the left navigation pane of the CS management console, choose Job Management to switch to the Job Management page.
  1. Perform either of the following methods to delete jobs:

    • Deleting a single job

      Locate the row where the job you want to delete resides and click More > Delete in the Operation column.

      Alternatively, you can select the row where the job you want to delete resides and click Delete in the upper left of the job list.

    • Deleting jobs in batches

      Select the rows where the jobs you want to delete reside and click Delete in the upper left of the job list.

  2. Click OK.