1.2.10 • Published 11 months ago
gcr-jobs v1.2.10
gcr-jobs
This project is no longer maintained
Please use @google-cloud/run instead.
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
1.2.10
11 months ago
1.2.9
1 year ago
1.2.8
1 year ago
1.2.6
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.2
2 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago