apinstein / jqjobs

A job queue engine for PHP.
32 stars 5 forks source link

Some job options don't make sense to do at enqueue time... #17

Closed apinstein closed 10 years ago

apinstein commented 10 years ago

All the operational job options are presently added at enqueue() time, which is fine except for that it means you have to remember to do common stuff everywhere (like queue name, maxRuntimeSeconds, etc). Seems like we might want a JQJob::defaultEnqueueOptions() or similar so that we can consolidate these?

apinstein commented 10 years ago

I think it'd be ideal to clean this up before 1.1 since it is really helpful in preventing "setup" errors when creating jobs.