Comments (6)
I have setup up Cronkeep but cron not scheduling in Cronkeep, anybody tried ? if you have some solution please post ASAP
from cronkeep.
I have the same problem
from cronkeep.
RUN JOBS ON DEMAND NOT WORKING
Run cron jobs outside scheduled hours are not working. Even the message "Process Started" appears on the top of the page but nothing happens. Only the scheduled jobs are working fine.
from cronkeep.
Same problem here, tested with a cron job :
root@phservice:/var/www/cronkeep# sudo -u www-data crontab -l
test
*/2 * * * * echo date
>> /tmp/date.txt
from cronkeep.
Has anyone managed to solve it?
from cronkeep.
Hi,
I'm not a php developer and my fix can be orrible, but it work
I have modified this part in index.php
/**
* Runs a cron job in background.
*/
$app->get('/run/:hash', $setupJsonResponse, function($hash) use ($app) {
$crontab = new Crontab();
$job = $crontab->findByHash($hash);
if ($job) {
$crontab->run($job);
$app->render(200, array(
'error' => false,
'msg' => 'Process started.'
));
} else {
$app->render(404, array(
'error' => true,
'msg' => 'Cron job no longer exists'
));
}
});
This is my fix:
/**
* Runs a cron job in background.
*/
$app->get('/run/:hash', $setupJsonResponse, function($hash) use ($app) {
$crontab = new Crontab();
$job = $crontab->findByHash($hash);
$command = $job->getCommand();
$name = $job->getComment();
if ($job) {
// $crontab->run($job);
shell_exec($command." >/dev/null 2>&1 &");
$app->render(200, array(
'error' => false,
'msg' => 'Process '.$name.' Started. Command:'.$command
));
} else {
$app->render(404, array(
'error' => true,
'msg' => 'Cron job no longer exists'
));
}
});
from cronkeep.
Related Issues (20)
- it's can support php 5.2 & 5.1? HOT 2
- Clear state of toggled buttons in the Add Job dialog
- There is no parameter named $inputFilter. Did you maybe mean $pickerInputFilter?
- @return annotation for constructors not meaningful
- Make running cron jobs on demand more reliable HOT 3
- Make the base URL configurable HOT 6
- /src/jobs/* directory missing from installation HOT 5
- www-data is not allowed to use this program (crontab) HOT 4
- See crontab(1) for more information HOT 1
- sh: 1: at: not found HOT 2
- Error on editing and can't add new job HOT 6
- cronkeep on nginx HOT 1
- CronKeep HOT 2
- Cron does not execute HOT 4
- /provision/prevent-running-cron-jobs.patch is a difference file, is it correct
- http://cronkeep.ubuntu/: Fatal error: Class 'Slim\Slim' not found in /var/www/cronkeep/src/index.php on line 26
- Pause Job with ### instead of # tag
- Does cronkeep run with PHP 8.x ? HOT 1
- Cronjob footprint
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 cronkeep.