Rq

Latest version: v2.0.0

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 20 of 21

0.3

* Added the capability to create periodic (cron) and repeated job using `scheduler.enqueue`


Changelog
---------

https://img.shields.io/badge/calver-YY.0M.MICRO-22bfda.svg

Flask-RQ2 follows the `CalVer <http://calver.org/>`_ version specification
in the form of::

YY.MINOR[.MICRO]

E.g.::

16.1.1

The ``MINOR`` number is **not** the month of the year. The ``MICRO`` number
is a patch level for ``YY.MINOR`` releases and must *not* be specified for
inital ``MINOR`` releases such as ``18.0`` or ``19.2``.

.. snip

0.3.0

Not secure
(August 5th, 2012)

- Reliability improvements

- Warm shutdown now exits immediately when Ctrl+C is pressed and worker is idle
- Worker does not leak worker registrations anymore when stopped gracefully

- `.enqueue()` does not consume the `timeout` kwarg anymore. Instead, to pass
RQ a timeout value while enqueueing a function, use the explicit invocation
instead:

python
q.enqueue(do_something, args=(1, 2), kwargs={'a': 1}, timeout=30)


- Add a `job` decorator, which can be used to do Celery-style delayed
invocations:

python
from redis import StrictRedis
from rq.decorators import job

Connect to Redis
redis = StrictRedis()

job('high', timeout=10, connection=redis)
def some_work(x, y):
return x + y


Then, in another module, you can call `some_work`:

python
from foo.bar import some_work

some_work.delay(2, 3)

0.2.2

Not secure
(August 1st, 2012)

- Fix bug where return values that couldn't be pickled crashed the worker

0.2.1

Not secure
(July 20th, 2012)

- Fix important bug where result data wasn't restored from Redis correctly
(affected non-string results only).

0.2.0

Not secure
(July 18th, 2012)

- `q.enqueue()` accepts instance methods now, too. Objects will be pickle'd
along with the instance method, so beware.
- `q.enqueue()` accepts string specification of functions now, too. Example:
`q.enqueue("my.math.lib.fibonacci", 5)`. Useful if the worker and the
submitter of work don't share code bases.
- Job can be assigned custom attrs and they will be pickle'd along with the
rest of the job's attrs. Can be used when writing RQ extensions.
- Workers can now accept explicit connections, like Queues.
- Various bug fixes.

0.1.2

Not secure
(May 15, 2012)

- Fix broken PyPI deployment.

Page 20 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.