Commit Graph

415 Commits

Author SHA1 Message Date
Vincent Driessen 0bc451f75b Install importlib on Travis' py26 environment. 2013-01-24 10:17:46 +01:00
Vincent Driessen 36eb555981 Update Travis CI config file to use py.test. 2013-01-23 23:01:02 +01:00
Vincent Driessen 73e6017896 Add tox tests, for Python 2.6 and PyPy. 2013-01-23 22:57:44 +01:00
Vincent Driessen 06b48c2026 Use unittest2 for Python 2.6. 2013-01-23 22:43:30 +01:00
Vincent Driessen cc14d6f00b Update changelog. 2013-01-23 22:21:22 +01:00
Vincent Driessen 743cf3cd74 Merge branch 'vierja-ended_time' 2013-01-23 22:19:38 +01:00
Vincent Driessen 20d435a077 Prepare for 0.3.5. 2013-01-23 20:52:20 +01:00
Vincent Driessen f818fb5d43 Bump version to 0.3.4. 2013-01-23 20:49:42 +01:00
Vincent Driessen c7e54d8c1a Promote to 'beta' stage.
This should've been done on 0.3.0 already, actually.
2013-01-23 20:49:42 +01:00
Vincent Driessen e1b81b1669 Avoid new-style classes under Python 2.6.
Little ugly fix, required because Python 2.6's logging uses old-style
classes.  Thanks for finding this one, @deferraz.
2013-01-23 20:34:10 +01:00
Vincent Driessen 77fb32791d Include a copy of dictConfig in RQ, for Python 2.6 compat. 2013-01-23 16:38:31 +01:00
Vincent Driessen e29981a008 Bump to new development version. 2013-01-18 16:24:20 +01:00
Vincent Driessen 55bb32cb36 Release 0.3.3. 2013-01-18 15:51:17 +01:00
Vincent Driessen d4f5bcb817 Fix position of changelog entry. 2013-01-18 15:48:27 +01:00
Vincent Driessen d1c2b3b78d Merge branch 'selwin-remove-logbook'
Conflicts:
	rq/utils.py
	rq/worker.py
	setup.cfg
	setup.py
2013-01-18 15:47:21 +01:00
Vincent Driessen 37b3bb4bd4 Have Worker.work() setup logging.
Basically, I don't want to enforce users to configure _any_ logging
stack when writing a basic worker, like this:

    from rq import Worker, Queue, Connection

    with Connection():
        q = Queue()
        w = Worker([q])
        w.work(burst=True)

In case you want to disable logging altogether, you can configure your
logging stack to do so.
2013-01-18 15:42:18 +01:00
Vincent Driessen 90df03dc0b Add release notes. 2013-01-18 15:12:49 +01:00
Vincent Driessen 90b15fd0b6 Don't silently fail when unpickling.
When a pickled job string can't be unpickled because some required
module isn't loadable, this leads to an `UnpickleError` in the worker
(not in the horse).

Currently we just assume "garbage" in the job's data field, and silently
ignore it.

This is bad.

Really bad.

Because it avoids the normal exception handling mechanism that RQ has.

Historically, this "feature" was introduced to ignore any invalid pickle
data ("bad strings") on queues, and go on. However, we must assume data
inside `job.data` to be valid pickle data.

While an invalid _format_ of pickle data (e.g. the string "blablah"
isn't valid) leads to unpickle errors, unpickling errors will also occur
when the job can't be validly constructed in memory for other reasons,
like being unable to load a specific class.

Django is a good example of this: try submitting jobs that use
`django.conf.settings` while the `DJANGO_SETTINGS_MODULE` env var isn't
set. Currently, RQ workers will drop these jobs and dismiss them like
any non-valid pickle data. You won't be notified.

This patch changes RQ's behaviour to never ignore invalid string data on
any queue and _always_ handle these errors explicitly (but without
bringing the main loop down, of course).
2013-01-18 14:59:20 +01:00
Vincent Driessen 7216b1eedb Add .env.fish, for fish lovers. 2013-01-18 12:53:05 +01:00
Selwin Ong 40d0a7d9a9 Removed __main__ that was accidentally added to rqworker script. 2013-01-16 18:58:12 +07:00
Selwin Ong d1f586b413 Only configure logging handlers if not already present. 2013-01-16 18:53:32 +07:00
Javier Rey d660b611db ended_at time is now saved when job is finished 2013-01-12 16:37:25 -02:00
Selwin Ong f498de57b6 Always call job.save even on synchronous queues so get_current_job doesn't fail 2012-11-25 13:37:12 +01:00
Vincent Driessen 10237ddcb4 Merge branch 'job-access-within-job'
Conflicts:
	CHANGES.md
	rq/job.py
2012-11-25 13:36:09 +01:00
Vincent Driessen a543a3860f Merge pull request #154 from ulope/issue154
config file option doesn't work for dotted names
2012-11-25 04:30:12 -08:00
Ulrich Petri 43038d3150 Added tests for config file loading 2012-11-24 14:53:22 +01:00
Ulrich Petri ba57f104ff Switched config file loading to import lib to allow dotted "paths" to settings modules 2012-11-24 14:53:06 +01:00
Vincent Driessen 5fd85ec754 Merge pull request #149 from jparise/scripts-url-argument
Add a standard --url argument to all scripts.
2012-10-05 23:24:09 -07:00
Jon Parise e90efc254b Use `redis.from_url()` for greater compatibility.
This lets us keep the redis-py version requirement back at 2.4.13.
2012-10-05 11:33:46 -07:00
Jon Parise eb00f69ced Add a standard --url argument to all scripts.
redis-py now supports URL-based connection configuration.  When --url
is specified, we use it to construct the Redis object.  Otherwise, we
use the existing argument-based construction method.

`Redis.from_url()` is new in redis-py 2.6.2, so that prerequisite has
been adjusted accordingly.
2012-10-04 16:57:49 -07:00
Vincent Driessen b97a9df69c Merge pull request #146 from sashka/master
Make rqinfo.py more silent.
2012-09-26 03:02:17 -07:00
Alexander Saltanov 0e638d795b Don't show traceback in rqinfo when ^C is pressed. 2012-09-26 13:43:45 +04:00
Vincent Driessen d80fa53d7e Ugh. Syntax. 2012-09-19 10:21:20 +02:00
Vincent Driessen 11794ccef5 Merge branch 'sburns-no-colorize-notty' 2012-09-19 10:19:34 +02:00
Vincent Driessen 435cbc0f53 Simplify a bit. 2012-09-19 10:19:23 +02:00
Scott Burns 59a01b49f4 Don't colorize non-tty stdout/err 2012-09-14 09:10:30 -05:00
Vincent Driessen 0e825c98ca Remove procname dependency. 2012-09-14 14:48:46 +02:00
Vincent Driessen 9ff5b18ebb Merge branch 'sburns-decorator-ttl' 2012-09-14 09:59:31 +02:00
Vincent Driessen 4e6b19d5ab Bump version number. 2012-09-14 09:59:26 +02:00
Vincent Driessen 5e59c6e28e Rename the const. 2012-09-14 09:56:10 +02:00
Scott Burns 538bbb1b55 Decorator accepts result_ttl argument 2012-09-13 11:07:52 -05:00
Vincent Driessen 221dd8a004 Merge pull request #137 from BuddhaOhneHals/master
Added new job status "Running"
2012-09-07 06:37:34 -07:00
Timo Steidle 881b944283 Changed status "Running" into "started" to be more consistent with the other statuses 2012-09-07 13:31:39 +02:00
Timo Steidle 8787cfbb30 Added new job status "Running" 2012-09-06 14:56:19 +02:00
Vincent Driessen c0df77f84d Support QUEUES as a config setting in settings files. 2012-09-05 13:27:31 +02:00
Vincent Driessen 81270c8e59 Support REDIS_PASSWORD setting in settings. 2012-09-05 13:21:56 +02:00
Vincent Driessen 412d4a15d3 Merge remote-tracking branch 'origin/master' 2012-09-05 08:37:48 +02:00
Vincent Driessen 398890fdc4 Update changelog. 2012-09-05 08:37:40 +02:00
Vincent Driessen 179b7b329d Merge pull request #135 from sburns/worker-password
Expose Redis password to scripts.
2012-09-04 23:36:28 -07:00
Scott Burns c705a2f06a Expose Redis password to scripts
Allow rqworker and rqinfo to connect to
password-protected Redis hosts.
2012-09-04 16:21:14 -05:00