Downcity
CommandsService

city task

Task service actions (list/create/run/update/status)

city task

Task system command group.

Usage

city task <subcommand> [options]

Subcommands

  • list
  • create
  • run <title>
  • update <title>
  • delete <title>
  • status <title> <enabled|paused|disabled>
  • enable <title>
  • disable <title>

create key options

  • --title <title> (required)
  • --description <description> (required)
  • --context-id <contextId> (required)
  • --when <when> (default @manual, supports cron and time:ISO8601)
  • --kind <agent|script>
  • --status <enabled|paused|disabled> or --activate
  • --body <body>
  • --overwrite

Create dedup now uses exact title only.

update common options

  • --title <title> / --description <description>
  • --when <when> / --clear-when
  • --kind <agent|script>
  • --context-id <contextId>
  • --status <status> / --activate
  • --body <body> / --clear-body

run return contract

run is async-accepted and immediately returns:

  • accepted=true
  • message
  • executionId

Examples

city task list
city task create --title "Daily check" --description "Run tests" --context-id telegram-chat-123 --when "0 10 * * 1-5" --activate
city task run daily-check
city task update daily-check --when "@manual"
city task disable daily-check

Table of Contents