1444 Commits (ee215a1853113912d53aa14bd0ebca66ebe91843)
 

Author SHA1 Message Date
Vincent Driessen 373aeb214e Getting the facts right here. 13 years ago
Vincent Driessen 767ad519c2 Fix code 13 years ago
Vincent Driessen 068db4cb35 Shut up logbook during tests. 13 years ago
Vincent Driessen 4eb8425acc Copy-paste README doc from gh-pages. 13 years ago
Vincent Driessen aecb0a1bf0 Simplify calling .work() or .work(burst=True). 13 years ago
Vincent Driessen 636b6690d6 Add the signal name to the debug message. 13 years ago
Vincent Driessen a154ef0bd9 Remove comment.
This ain't the right way to terminate when blocking by pop.
13 years ago
Vincent Driessen 253f1752b8 Shorter logbook format on standard output, for readability.
Still, the original output can be seen using the `--verbose` flag.
13 years ago
Vincent Driessen 62949c9adb Extra debug output. 13 years ago
Vincent Driessen dde3ea8ef7 Take down horse process when the worker is terminated. 13 years ago
Vincent Driessen 4ac243b3e8 Print what signal was received in a debug statement. 13 years ago
Vincent Driessen 7769d9875f Perform a warm shutdown on SIGTERM, too.
Just like with Ctrl+C (SIGINT), shutdown warmly at first when kill'ed
(SIGTERM).
13 years ago
Vincent Driessen 3ecda16665 Fix output. 13 years ago
Vincent Driessen 7841e23cc4 Add procname dependency.
Eventually, this will be optional, but for now, include it as there
actually *is* a dependency.
13 years ago
Vincent Driessen 213ac73e19 Remove blinker dependency. 13 years ago
Vincent Driessen 5dba007222 Add script to calculate project size.
This will help keep the "lightweight" claim up.
13 years ago
Vincent Driessen 88cbaa1df9 Slight code reshuffle + added some comments on the construction. 13 years ago
Vincent Driessen 7cba8449d9 Add comments. 13 years ago
Vincent Driessen 1cbf92c166 Workaround for os.waitpid() throwing an OSError on SIGINT.
When SIGINT (``Ctrl+C``) is received when inside a blocking
os.waitpid(), OSError is thrown, effectively cancelling the wait.

However, to facilitate a "warm shutdown", as we intend, Ctrl+C is
perfectly allowed and we want to keep waiting for the child.  Therefore,
we perform a trick here, catching OSError, checking whether its cause
was SIGINT (errno == EINTR), and only in that case, loop to os.waitpid()
again.
13 years ago
Vincent Driessen e278bd2967 Exit gracefully when user hits Ctrl+C in a worker.
The currently running task will be waited for, so it can gracefully
be finished.  Further execution will be stopped.

If, during this waiting phase, Ctrl+C is hit again, the worker and the
horse will be terminated forcefully (this means work could be lost or
partially finished).
13 years ago
Vincent Driessen ba965a1dd9 Minor text change 13 years ago
Vincent Driessen 2d2b351f7c Change logging format. 13 years ago
Vincent Driessen 8678f26df0 Factor out call string. 13 years ago
Vincent Driessen 2ec12f1775 Fix bugje. 13 years ago
Vincent Driessen 1358246238 Better logging output. 13 years ago
Vincent Driessen 1dd73cb28d Fix comment. 13 years ago
Vincent Driessen d291f1dc4a Text fix. 13 years ago
Vincent Driessen ec4da2b3ad Add sort-by-queue flag. 13 years ago
Vincent Driessen cc8f05b3c6 Add __str__ to Job. 13 years ago
Vincent Driessen fd3831f8f2 Fix b0rken test case due to new naming conventions. 13 years ago
Vincent Driessen 55fd393626 Worker.find_by_key method now returns None for nonexisting workers. 13 years ago
Vincent Driessen 507558f6bc Avoid forked work horse to register death of its parent worker. 13 years ago
Vincent Driessen bd1778c610 Fix comment typo's. 13 years ago
Vincent Driessen 0f38cfdd84 Add rqinfo -w command, to monitor active workers. 13 years ago
Vincent Driessen 4ad6281641 Rewrite the ANSI color formatter a bit. 13 years ago
Vincent Driessen edcc012b2d Document the Queue class. 13 years ago
Vincent Driessen 45700fc788 Delete unused file. 13 years ago
Vincent Driessen c9ba66bd59 Register workers in a central set ("rq:workers"). 13 years ago
Vincent Driessen 1f12678468 Get Worker fetch methods. 13 years ago
Vincent Driessen 9e8a4d15be Document methods. 13 years ago
Vincent Driessen 6013227f4c Remove unused property. 13 years ago
Vincent Driessen aebfe74630 Add polling/scaling graphs. 13 years ago
Vincent Driessen 15c4efd2e1 Generate less intensive work. 13 years ago
Vincent Driessen a905961f94 Add some sample scripts. 13 years ago
Vincent Driessen a029e5437b Add beginnings of a rqworker script. 13 years ago
Vincent Driessen d780c929c0 Change semantics of work(). Add work_burst().
work() will now start the worker run loop, and work_burst() now leads to
the burst-then-quit behaviour.
13 years ago
Vincent Driessen d761dd0280 Add BSD license, copied from git-flow. 13 years ago
Vincent Driessen a491ff248d Add simple helper function, to avoid users to learn about the `conn`
stack.

This makes it easier to start using the product.
13 years ago
Vincent Driessen 0ff2984adf Use __slots__, for minimal memory overhead. 13 years ago
Vincent Driessen ced001cbb9 Update README with some project values. 13 years ago