predakanga / cronbundle Goto Github PK
View Code? Open in Web Editor NEWSymfony2 bundle for scheduling repeated execution of commands
Symfony2 bundle for scheduling repeated execution of commands
Please make this bundle available with composer with "minimum-stability" : "stable".
I think that the right way to do this is to add a tag (release)
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'INSERT INTO CronJobResult (runAt, runTime, result, output, job_id) VALUES (?, ?, ?, ?, ?)' with params {"1":"201
3-04-10 17:22:42","2":0.055889844894409,"3":null,"4":"Done and updated 11 profiles.\n","5":1}:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'result' cannot be null
Shall we allow null for this column?
When a command is removed, cron:scan
throws an exception when trying to remove the command from the database. It seems related to the foreign key constraints:
Deleting job: xx
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'DELETE FROM CronJob WHERE id = ?' with params {"1":1}:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`xx`.`cronjobresult`, CONSTRAINT `FK_301AF175BE04EA9` FOREIGN KEY (`job_id`) REFERENCES `CronJob` (`id`))
[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`xx`.`cronjobresult`, CONSTRAINT `FK_301AF175BE04EA9` FOREIGN KEY (`job_id`) REFERENCES `CronJob` (`id`))
Hi ,
I am using this bundle with Symfony 2.5.4 it`s giving me error of
Problem 1
- Installation request for colourstream/cron-bundle dev-master -> satisfiable by colourstream/cron-bundle[dev-master].
- colourstream/cron-bundle dev-master requires symfony/symfony 2.1.* -> no matching package found.
When changing the interval of a Command, an exception is thrown:
[BadMethodCallException]
Unknown property 'interval' on annotation 'ColourStream\Bundle\CronBundle\Annotation\CronJob'.
How to reproduce:
Hello, and thanks for a great bundle.
I'd like to discuss a new feature which I would like to see in this bundle. In a project of mine I'd like to send out reminders every day at a specific time. I tried setting the nextRun date to the time I want but it seems like the value is being incremented with every run.
Would a annotated option that specifies which time of day a job should be run make sense? In a unix crontab this is possible using the crontab file syntax. Maybe something simplified could be used for this bundle?
I'd be willing to dig into the code and maybe submit a PR, but would like to get your input first.
Please add support for propel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.