npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

teraslice-job-manager

v1.2.3

Published

teraslice job manager

Downloads

4

Readme

teraslice-job-manager

Command line teraslice job management helper.

The teraslice job manager looks for the cluster name and job id in the job file to execute most commands. Registering a job with the teraslice job manager will cause the metadata to be added to the job file as tjm: { job_id: jobid, cluster: clusterName, version: version}. The tjm data can then be referenced by the teraslice job manager for other functions. This also applies to assets. Cluster data is stored in asset.json as tjm: { clusters: [ clustername1, clustername2 ] }.

Installation

npm install -g teraslice-job-manager
yarn global add teraslice-job-manager

CLI Commands and Usage

For all commands that accept -c, if -c is missing default is http://localhost

ASSET - Compresses files in ${cwd}/asset and creates a zip file in ${cwd}/builds/processors.zip. Once the asset has been deployed with tjm the cluster data is stored in ${cwd}/asset/asset.json. The builds dir is deleted before a new processors.zip file is created on all functions that build assets.

  • tjm asset --deploy -l Deploys asset to localhost
  • tjm asset --deploy -c clusterName Deploys assets to the cluster
  • tjm asset --update -c clusterName Updates asset in the cluster(s) specified. If no -c flag then all the clusters in the asset.json will get updated
  • tjm asset --status Shows the latest asset version in the cluster(s) in asset.json
  • tjm asset --replace -c clusterName Deletes and replaces an asset, this is intended to be used for asset development and not for production asset management

REGISTER - Registers a job to a cluster with an option to deploy assets. Updates the jobFile.json with the cluster and job id data. Use -a to deploy assets, -r to run immediately after registering.

  • tjm register -c clustername jobFile.json
  • tjm register -c clustername -a jobFile.json
  • tjm register -c clustername -ar jobFile.json

Cluster and job id data must be in the jobsFile.json for all commands below

ERRORS - Displays errors for a job.

  • tjm errors jobFile.json

PAUSE - Pauses a job.

  • tjm pause jobFile.json

RESET - Removes tjm data from job file or asset file, just specify the relative path.

  • tjm reset asset/asset.json

Restart - Stops and restarts a job.

  • tjm restart jobFile.json

RESUME - Resumes a paused job.

  • tjm resume jobFile.json

START (RUN) - Starts a job. Run is an alias for start, run and start can be used interchangeably. Start will automatically register and start a new job, just remember to specify the cluster with -c. Start can also be used to move a job to a new cluster with -m, this does not move the asset only the job file.

  • tjm start jobFile.json
  • tjm run jobFile.json
  • tjm start jobFile -c clustername register and run a new job, same as tjm register -r jobfile -c clustername
  • tjm run -m jobFile -c clusterName runs a job on a new cluster, replaces the old tjm data in the jobFile

STATUS - Reports the status of a job.

  • tjm status jobFile.json

STOP - Stops a job.

  • tjm stop jobFile.json

UPDATE - Updates a job.

  • tjm update jobFile.json

VIEW - Displays job file as it is saved on the cluster.

  • tjm view jobFile.json

WORKERS - Adds to or removes workers from a job.

  • tjm workers add 10 jobFile.json
  • tjm workers remove 5 jobFile.json