Closed hdn8 closed 10 years ago
Hello Nathaniel,
You should be able to use CELERYD_TASK_SOFT_TIME_LIMIT and all of the other options, just like with non-Jobtastic, normal tasks. Are you running in to problems when trying that?
Thanks -Wes
Hi Wes, sorry absolutely right it does in fact throw the exception when you actually have the setting placed and spelled properly in your settings file, thanks for your reply! I put the exception within the calculate_result() def like so btw, in case its of interest to someone.
class MyTask(JobtasticTask): def calculate_result(args); try: ..... return results except SoftTimeLimitExceeded: ...clean up, send notification, etc... return results
It wasnt throwing it because it wasnt set properly, now works as it should :S
How can I include a SoftTimeLimitExceeded exception on a Jobtastic task?