Comments (2)
No problem @letsbyteit. jobby.php
should be created by you, following the example in the README
. The contents in jobby.php
add your actual cron jobs to jobby. Jobby doesn't really "store" them. It just looks thru each one each time, and evaluates whether or not the job should run based on its schedule, whether it's running already, etc. That's jobby's job :-)
Typically, I throw all my PHP cron scripts in a folder, and add them each to jobby in jobby.php
. That way, if I add a new one, or change the schedule of one, I can do that in source code (which is version controlled), and not in crontab.
In your case, your jobby.php
could query the database for all jobs and schedules, add them to jobby, and allow jobby to decided if they should run or not (as opposed to hard-coding all the jobs).
HTH.
from jobby.
Thanks @hellogerard for your quick reply. Thanks for your help, let's close this issue.
from jobby.
Related Issues (20)
- DateTimeImmutable and PHP Version HOT 1
- possibility to change lockfile location HOT 2
- is there any way to kill all jobs running in jobby at a point of time? HOT 2
- how i can run in cloud foundry buildpack
- two jobs be executed at the same minute
- Not executing with Symfony Process 3.3.6
- How to build it from source
- Check if a cron is enabled or not? HOT 1
- Package mtdowling/cron-expression is abandoned
- run command using zsh or bash shell? HOT 2
- Is this project abandoned? HOT 2
- Question: How can I get a persistent jobby logfile
- Not working with Symfony Process 5.1.2 on PHP 7.3
- Adding 'nice' process priority parameter to jobs
- Extract Swift mailer capability to new package HOT 6
- Warning: exec() has been disabled for security reasons
- Does this library support catch-up like anacron/fcron?
- Does this library support system load average thresholds like fcron?
- putting the lck file outside the server ( redis or mysql / GCP, AWS)
- Parameter to set location of debug.log
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 jobby.