Code Monkey home page Code Monkey logo

task-status-update's Introduction

task-status-update

Setting up to build go

See this https://steel-ventures.atlassian.net/wiki/spaces/VT/pages/8454186/Setup+development+environment

And look for the GO specifics section

In addition, make sure you have access to the repo https://github.com/veritone/go-veritone-api or practically ask Veritone DevOp to add you to the InternalDevelopers group

Setting up locally

After setting up go,

go get github.com/quynhdang-vt/task-status-update

Assuming that you have access to a number of Veritone private repos, this command should clone this repo and dependencies to your local $GOPATH/src directory

Once that's cloned, to work with this tool, open a terminal window and ..

cd $GOPATH/src/github.com/quynhdang-vt/task-status-update

To build:

make -f Makefile.inContainer dev

This will create the task-status-update executable

Usage:

Make sure to prepare a payload.json file. See payload

./task-status-update -payload payload.json

payload.json

field name Notes
recordings JSON array of strings containing the recording ids to be modified }
engineId engine Id or GUID executing the tasks that you want to modify status.
fromStatus current status of the task, typically "pending" or "running"
toStatus the new status to move the task to, typically "failed" or "complete"
token API token -- must have enough priv, e.g. "recording:read, job:all"
veritoneApiBaseUrl for Prod : "https://api.veritone.com". For uk-prod: "https://api.uk.veritone.com

Examples

{
"recordings":["77951604","77951513","77860949"],
"engineId":"9084f686-cf02-41c5-adb5-d48fb6558d77",
"fromStatus":"pending",
"toStatus":"failed",
"token":"",
"veritoneApiBaseUrl": "https://api.veritone.com"
}

task-status-update's People

Contributors

quynhdang-vt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.