Skip to content

Adding Jobs, Channels and Share Entities

thealphadollar edited this page Aug 7, 2018 · 6 revisions

This page is aimed at developers to test Nephos locally, please see NephosConfig for Redhen users.

The page provides details on how to add data (namely jobs, channels, and share entities) to Nephos. This can be done from the runtime CLI that Nephos comes with.


Basic Info

For batch operations to be performed, sample files are provided in the config subdirectory of Nephos directory. These should be duplicated, mod


Adding Jobs

It must be kept in mind that Jobs can only be added for existing channels!

Adding A Single Job

A single job can be added using the CLI in the following manner:

  • add job
  • Provide appropriate input to the CLI prompts
  • The log will notify of success/failure of the operation

NOTE: If you just want to add channels or share entities, remove the other part along with the mention of the key channels/jobs in the modified file.

Adding A Single Channel

A single channel can be added using the CLI in the following manner:

  • add channel
  • Provide appropriate input to the CLI prompts
  • The log will notify of success/failure of the operation

Filtering Wrong Inputs

Nephos uses Regular Expressions to validate entries for channels, jobs and share entities. The patterns are listed below, any violation of the below patterns, prompts the user to enter the particular data field again.

  • email: "[^@\s][\w\d._+][^\s]+@[\w\d.]+.[\w\d]"
  • ip: "[^\s]+:[\d]+"
  • country_code: "[a-zA-Z ]+"
  • language: "[a-zA-Z ]+"
  • timezone: "[a-zA-Z]"
  • start_time: "\d{2}:\d{2}"
  • duration: "\d+"
  • repetition: "[01]{7}"

NOTE: You can execute these Reg-Ex patterns here and check if your entry qualifies.