Canceling and retrying refactor jobs

Cancel a refactor job that is queued or running. Retry a job that has ended, with another branch or commit, more instructions, or other memory settings.

To cancel a job:

  1. On the Refactor page, open the menu on the row of the job.
    You can also cancel a running job by using Cancel on its Refactor details page.
  2. Click Cancel.
    The Cancel this job? dialog opens.
  3. Click Cancel job.
    To keep the job running, click Keep running instead.
    Code Migrator notices the request within about two seconds and stops the job. A build or validation that is running ends immediately, and the job makes no further LLM request, commit, or push. A push or LLM request that is in progress completes, but Code Migrator does not use its result. The status of the job changes to CANCELLED. The Refactor details page displays This job was cancelled. You cannot undo this action.

To retry a job:

  1. On the Refactor page, click the job.
    The Refactor details page opens.
  2. Click Retry.
    Retry is available when the status is SUCCESS, FAILED, or CANCELLED.
    The wizard opens with the message Retrying job. The repository URL and the workflows come from the original job, and you cannot change them.
  3. Optional: In Reference, enter another branch name or commit hash.
  4. If the repository needs credentials, expand Credentials (optional), and enter the Username and Access Token again.
    A retry does not keep the credentials of the original job.
  5. Click Next until the AI Settings step opens.
  6. Optional: In Additional context, describe what to fix, for example the errors of the original job.
  7. Optional: Change the Agent Memory settings.
  8. Click Next.
  9. In the AI use card, select the check box.
  10. Click Retry.
    The retry is a new job, with its own ID and its own branch. The original job and its branch stay as they are.

To stop a step of a plan execution, click Stop on the execution instead. See Running plan executions.