DB Utilities¶
An additional module to nreal_brain and nr_cue, responsible for injecting files to tactic and updating status of tasks
-
db_utils.
ingest_files
(tactic_server, project_code, snapshot_code, filesToPublish, task_code=None, auto_status=True, update_status=None, overwrite=False)¶ Inject the given files to tacic
Parameters: - tactic_server – tactic server ip
- project_code –
- snapshot_code –
- filesToPublish – list of files to be published
- task_code – Optional task_code the files belongs to
- auto_status – if True, then the task_code should also be available, then this will update the task status
to either “Art Review” or “Review” based on the process type and status history. :return: status
-
db_utils.
set_task_status
(tactic_server, project_code, task_code=None, status=None, triggers=True, auto_status=True, note=None, tactic=None, ast_sk='', context='')¶ Set the task status to the given status
Parameters: - tactic_server – tactic server ip
- project_code –
- task_code – Either a task code or pair of ast_sk/context should be provided
- status –
- triggers – if False, will disable tactic triggers during the status update
- tactic – is an instacne of nreal_brain API (optional, but recommended when available for passing)
- auto_status – when True, and no status given, then the task status will be set automatically the first status prior the current one so, if the current status is waiting, and the privious status was “In Progress”, then the status will be “In Progress”.
- note –
- tactic –
- ast_sk –
- context –
Returns: success status