Vridlo/types/Task: Difference between revisions

From ALT Linux Wiki
(Created page with "'''Task''' is read-only structure that represents Task model. It is described as: * '''slug''' is ''string '''mandatory write-once''''' Unique internal identifier of the fil...")
 
No edit summary
Line 1: Line 1:
'''Task''' is read-only structure that represents Task model. It is described as:
'''Task''' is structure that represents Task model, which is used for describing the [[Vridlo/types/Assembler|Assembler]]'s task. It is described as:


* '''slug''' is ''string '''mandatory write-once'''''
* '''id''' is ''string '''mandatory read-only internal'''''
  Unique internal identifier of the file representing by a string. Can contain only letters and underscores.
  Unique internal identifier of the task represented by a natural integer.


* '''name''' is ''string '''optional'''''
* '''no''' is ''natural '''mandatory write-once'''''
  Name of the assembler.
  Unique task identifier in the context of the current assembler.


* '''host''' is ''string '''optional'''''
* '''uri''' is ''string '''optional'''''
  Host URI of of the assembler.
  External resource URI to see the task details.


* '''export_path_base''' is ''string '''optional'''''
* '''state''' is ''string '''optional'''''
  Internal export path base. The path base can be appended to ftp path for the assembler, and prepended to specific arch suffix in order, to read the RPM packages.
  State of the task.


* '''source_path_count''' is ''string '''read-only'''''
* '''shared''' is ''boolean '''optional'''''
Shared flag of the task.


  Count of held [[Vridlo/types/SourcePath|RPM source paths]] in the assembler.
* '''test''' is ''boolean '''optional'''''
    t.integer "no", null: false, comment: "Число задания сборочницы"
  Testonly flag of the task.
    t.string "uri", comment: "Ссылка на задание"
 
    t.string "state", comment: "Статус задания"
* '''try''' is ''natural '''optional'''''
    t.boolean "shared", comment: "Разделяемое задание"
Try of the build.
    t.boolean "test", comment: "Тестовое задание"
 
    t.integer "try", comment: "Попытка"
* '''iteration''' is ''natural '''optional'''''
    t.integer "iteration", comment: "Шаг"
Build iteration
    t.string "owner_slug", null: false, comment: "Учётка владельца"
 
    t.bigint "branch_path_id", null: false, comment: "Ссылка на сборочный путь ветви"
* '''owner_slug''' is ''string '''mandatory write-once'''''
    t.datetime "changed_at", null: false, comment: "Задание изменено в"
The task owner slug in the context of the current assembler.
 
* '''source_path_slug''' is ''string '''mandatory write-once'''''
Slug of the source path.
 
* '''changed_at''' is ''string '''optional write-once'''''
Task state is changed at the time.
 
* '''exercises_count''' is ''positive '''mandatory read-only'''''
Count of held [[Vridlo/types/Exercises|exercises i.e. subtasks]] in the task.

Revision as of 09:54, 12 December 2019

Task is structure that represents Task model, which is used for describing the Assembler's task. It is described as:

  • id is string mandatory read-only internal
Unique internal identifier of the task represented by a natural integer.
  • no is natural mandatory write-once
Unique task identifier in the context of the current assembler.
  • uri is string optional
External resource URI to see the task details.
  • state is string optional
State of the task.
  • shared is boolean optional
Shared flag of the task.
  • test is boolean optional
Testonly flag of the task.
  • try is natural optional
Try of the build.
  • iteration is natural optional
Build iteration
  • owner_slug is string mandatory write-once
The task owner slug in the context of the current assembler.
  • source_path_slug is string mandatory write-once
Slug of the source path.
  • changed_at is string optional write-once
Task state is changed at the time.
  • exercises_count is positive mandatory read-only
Count of held exercises i.e. subtasks in the task.