Re-ranks a task. Every change is a ledger event (task.prioritised). With –top the task goes first within its priority. A repeated identical call changes nothing.
Usage
overlane task prioritise task-id --priority P0|P1|P2|P3 [--top] [--reason TEXT] [--dry-run]Arguments
| Argument | Required | Description |
|---|---|---|
task-id |
yes | The task to re-rank |
Flags
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--priority |
one of P0, P1, P2, P3 |
yes | P0 is most urgent, P3 least | |
--top |
boolean | no | Put the task first within its priority | |
--reason |
string | no | Why; kept in the event | |
--dry-run |
boolean | no | Print the requests and file changes this command would make, then stop. Needs no credentials. |
Examples
overlane task prioritise task-7 --priority P0 --top
overlane task prioritise task-9 --priority P2 --reason "user said later"Behavior
- Effect:
write(changes local or hosted state). - Needs credentials: yes. Uses the network: yes.
- Supports
--dry-run: yes. Accepts--force: no. - Machine-readable description:
overlane schema task prioritise.
Result
With --json (the default when stdout is not a terminal) the command prints this JSON Schema’s shape on stdout.
{
"anyOf": [
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$",
"description": "task identifier"
},
"priority": {
"type": "string",
"enum": [
"P0",
"P1",
"P2",
"P3"
]
},
"rank": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"origin": {
"type": "string",
"enum": [
"user",
"plan",
"agent",
"system"
]
},
"previous": {
"anyOf": [
{
"type": "object",
"properties": {
"priority": {
"type": "string",
"enum": [
"P0",
"P1",
"P2",
"P3"
]
},
"rank": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"priority",
"rank"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"changed": {
"type": "boolean"
},
"next": {
"type": "string"
}
},
"required": [
"taskId",
"priority",
"rank",
"origin",
"previous",
"changed",
"next"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"dryRun": {
"type": "boolean",
"const": true
},
"service": {
"type": "string"
},
"requests": {
"type": "array",
"items": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"path": {
"type": "string"
},
"body": {},
"note": {
"type": "string"
}
},
"required": [
"method",
"path"
],
"additionalProperties": false
}
},
"commands": {
"type": "array",
"items": {
"type": "string"
}
},
"writes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"action": {
"type": "string",
"enum": [
"write",
"append",
"delete"
]
},
"description": {
"type": "string"
}
},
"required": [
"path",
"action",
"description"
],
"additionalProperties": false
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"dryRun",
"requests",
"commands",
"writes",
"notes"
],
"additionalProperties": false
}
]
}See exit codes for the status the process returns.