Comments (3)
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.
I would suggest, until you get to publish the WebUI source, place a link to this issue into the README
from cron-job.org.
Frontend code is published by now
from cron-job.org.
Related Issues (20)
- [Feature request] Parse response to determine job success/failure HOT 1
- Receive time too long HOT 2
- Add Contact link to console footer
- Bulk job move
- Cloudflare bot protection blocks cron-job.org HOT 4
- Provide user-agent selection
- [feature request] custom status codes as success
- Dashboard history "Details" button does not link to right folder
- Apache Close-Wait from cron-job.org HOT 1
- How How to use cron-job.org rest API, To schedule a job to hit an API on an expiration time, and that API endpoints require some data from the body, Is it possible to do this in JavaScript? HOT 2
- Mobile App / Webhooks for Notifications? HOT 3
- Add "All jobs" special folder
- Set a time period for the cron.php HOT 1
- How i can set my own cron schedule expressions? HOT 1
- Is the privacy policy outdated? HOT 2
- I can't delete a specific job HOT 2
- Custom cron job expression don't work HOT 2
- chronos: Reduce phrase sync frequency
- I'm getting execution timeouts but I can't debug HOT 1
- Select all jobs at once from the dashboard HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron-job.org.