2.0.0-rc1 • Published 8 months ago

@lanternfly/imogen v2.0.0-rc1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Imogen

npm version

Imogen is a Node based job scheduler build on top of Node Schedule.

Getting Started

  1. Install the package @lanternfly/imogen globally using npm install -g @lanternfly/imogen.
  2. Create a configuration file. See the Configuration section for more details.
  3. Run imogen --config=<path to config file> to run the job scheduler.

Configuration

Sample Configuration File

{
  "database": {
    "path": "imogen.db"
  },
  "jobs": [
    {
      "name": "job-1",
      "time": "* * * * * *",
      "command": "ls"
    }
  ],
  "server": {
    "enabled": true,
    "bindHostname": "localhost",
    "bindPort": 16061
  }
}

Configuration API

A configuration is a json file with the following fields:

FieldTypeDescriptionIs Required?Default
database.pathStringThis is the path to the SQLite database file. If no path is provided a file titled imogen.db will be created in the working directory.Noimogen.db
jobsYes
jobs[#].nameStringThe name of the job. The name can only contain letters, numbers, dashes, and underscores.Yes
jobs[#].timeStringThis is a cron style string specifying when the job will run. See this for more details.Yes
jobs[#].timeZoneStringOne of the timezone specified in here.NoEtc/UTC
jobs[#].commandStringThe system command which should be run on each job execution.Yes
jobs[#].overlapBooleanFlag for whether multiple instances of job can be executed at once. If true, multiple instances can run concurrently. If false, the next job will not be run until the previous instance has been completed.Notrue
server.enabledBooleanNofalse
server.bindHostnameStringNolocalhost
server.bindPortIntegerNo16061

Imogen Server API (Version 1.0)

This is the API used to talk to an Imogen server instance.

Officially Supported Node Versions

  • 18.x
  • 20.x
  • 21.x
  • 22.x
  • 23.x
2.0.0-rc1

8 months ago

1.0.2

11 months ago

1.0.0

1 year ago

0.7.0

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.4

1 year ago

0.5.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago