abort_sequence
Abort the sequence in a task's checkout.
writesnot idempotentdestructiveCLI onlyAgent
Komrad keeps the checkout at a ref first and mails the task's writer what was aborted.
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/AbortSequence \
-H 'Content-Type: application/json' \
-d '{
"task_id": "<task_id>"
}'komrad rpc abort-sequence \
--task-id '<uuid>'Request#
AbortSequenceRequest#
Response#
AbortSequenceResponse#
| Field | Type | Description |
|---|---|---|
sequence | Sequence | The sequence that was aborted. |
branch | string | The branch of the task's checkout after the abort. Empty when the checkout is detached. |
parked_ref | string | The ref that keeps the checkout as it was before the abort, conflicts included. |
Types#
Sequence#
Sequence is a git operation stopped part way in a task's checkout.
| Value | Description |
|---|---|
none | No git operation is stopped part way. |
rebase | A rebase stopped on a commit it could not replay. |
am | A |
merge | A merge stopped on conflicts. |
cherry_pick | A cherry-pick stopped on conflicts or paused between commits. |
revert | A revert stopped on conflicts or paused between commits. |