This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This file is part of Telegram Desktop, | |
the official desktop version of Telegram messaging app, see https://telegram.org | |
Telegram Desktop is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
It is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/mayflaver/tornado-celery | |
from rq import Queue | |
from tornado import stack_context | |
from tornado.concurrent import TracebackFuture | |
from tornado.ioloop import IOLoop | |
class JobFailed(Exception): | |
pass |