gcr-jobs
TypeScript icon, indicating that this package has built-in type declarations

1.2.9 • Public • Published

gcr-jobs

Google Cloud Run Jobs Helper.
Allows you to run job and check if job is currently running.

Table of Contents

Install

$ npm install gcr-jobs

Usage

const {Jobs} = require('gcr-jobs');

// replace with your Project ID and Service Account
const PROJECT_ID = 'my-example-project';
const SERVICE_ACCOUNT = '111111111111-compute@developer.gserviceaccount.com';

// replace with your Job name
const JOB_ID = 'my-example-job';

// create class instance
const jobs = new Jobs(PROJECT_ID, SERVICE_ACCOUNT);

// run job
const result = await jobs.runJob(JOB_ID);

// check if job is currently running
const isJobRunning = await jobs.isJobRunning(JOB_ID);

License

MIT

/gcr-jobs/

    Package Sidebar

    Install

    npm i gcr-jobs

    Weekly Downloads

    156

    Version

    1.2.9

    License

    MIT

    Unpacked Size

    16.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • aliaksandr-kasko-jazzteam