13

Is there a full featured, job scheduling package available for PHP? I'm looking for the PHP equivalent to Java's Quartz. I'm fine having things triggered externally from cron to drive the system. The functionality I'd be looking for:

  • Ability to register task (class/method) to be called at given intervals.
  • Ability to specify whether a given task can be run multiple times (potentially long running methods should not be run multiple times in certain cases).
  • All registered entries/methods could be run in parallel (jobs are backgrounded so that they do not block other timed tasks).
  • Ability to set a timeout for a given task.
  • Ability to update job control dynamically, so for instance you could disable some tasks or change their frequency without code changes.

I know it is a lot to ask, but it seems like a useful batch of features and I thought someone might have put together some portion of them.

If this or some portion of this does not already exist, any pointers to putting one together or an open source project that has a reasonably featureful implementation of some subset of these?

1
  • Did you ever find a good library for this? Jun 2, 2015 at 20:03

1 Answer 1

3

A quick google turns up a few decent results:

Really, though, if you're on any decent shared hosting package you should have access to some sort of task scheduler be it Windows' Task Scheduler or cron under *nix. I know DreamHost allows user level crontabs, at least.

2
  • I'm fine using cron. It is just that cron alone does not give most of the functionality listed. Really, it only gives the first item.
    – Tim
    Nov 25, 2008 at 18:39
  • quick google turns up, first this answer. could you imagine 10 years ago that someone quickl google a question and find you. Like your sarcasm turn out a real answer.
    – nerkn
    Feb 16, 2018 at 22:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.