Skip to content

Commit ccae3f0

Browse files
author
Matt George
committed
added the resq object to the worker jobs
allows jobs to requeue or to put new items on the queue in a chaining fashion
1 parent d9d6f9e commit ccae3f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyres/job.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def perform(self):
1717
"""
1818
payload_class_str = self._payload["class"]
1919
payload_class = safe_str_to_class(payload_class_str)
20+
payload_class.resq = self.resq
2021
args = self._payload.get("args", None)
2122
if args:
2223
return payload_class.perform(*args)

resweb/templates/header.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Resque.</title>
4+
<title>pyres.</title>
55
<link href="{{media_folder}}reset.css" media="screen" rel="stylesheet" type="text/css">
66
<link href="{{media_folder}}style.css" media="screen" rel="stylesheet" type="text/css">
7-
<script src="{{media_folder}}jquery-1.3.2.min.js" type="text/javascript"</script>
7+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"</script>
88
</head>
99
<body>
1010
<div class="header">

0 commit comments

Comments
 (0)