Giter Site home page Giter Site logo

Comments (3)

pschlan avatar pschlan commented on August 11, 2024 2

Hi,

yes, there is. We just didn't have time yet to get it ready for publishing.

I'm trying to explain briefly how to insert manually / with your own scripts:

First, create a user in the user table.

Then, for every job, insert a new row into the job table:

  • jobid: Auto-increment, will be assigned by MySQL
  • userid: ID of the user (references the user table)
  • title: An arbitrary title for the job
  • url: The URL to fetch
  • auth_enable: Set to '1' if job requires HTTP auth
  • auth_user, auth_pass: Login info (if auth_enable is '1')
  • notify_failure, notify_success, notify_disable: Notification settings, you can leave this as '0' for now
  • last_status, last_fetch, last_duration, fail_counter: Just leave at the default value '0', will be populated by chronos
  • save_responses: Whether to save the responses of the job or not
  • request_method: Request method to use, see RequestMethod enum in chronos/HTTPRequest.h (0 = GET)

Then, insert the job schedule into the job_hours, job_mdays, job\minutes, job_months, job_wdays tables. As the jobid column use the ID of the job you've created in the job table. The ranges of the values are:

  • hours: 0..23
  • mdays: 1..31
  • minutes: 0..59
  • months: 1..12
  • wdays: 0 (Sunday), 1 (Monday) .. 6 (Staturday)

The job will be executed whenever the current time can be found in the (hours, mdays, minutes, months, wdays) entries of the job. Example: If you want the job to execute every day at 10:30 and 12:30, insert the following:

  • hours: Insert values 10, 12
  • mdays: Insert values 1 .. 31 (i.e. don't care which day of month it is)
  • minutes: Insert value 30
  • months: Insert values 1 .. 12 (i.e. don't care which month it is)
  • wdays: Insert values 0 .. 6 (i.e. don't care which day of week it is)

Note: This requires quite a lot of rows in the scheduling tables for many types of jobs. It's optimized on easy and fast scheduling implementation in the chronos daemon. The tables are small and lookup should be fast.

from cron-job.org.

gnanet avatar gnanet commented on August 11, 2024

I would suggest, until you get to publish the WebUI source, place a link to this issue into the README

from cron-job.org.

pschlan avatar pschlan commented on August 11, 2024

Frontend code is published by now

from cron-job.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.