9 Matching Annotations
  1. Nov 2021
    1. “What is the meaning of home?

      “What is the meaning of home?”

    2. “How do Dutch adolescents aged 14-18 en

      “How do Dutch adolescents aged 14-18 engaging in online education experience the meaning of home

      during the Corona pandemic?”

    1. What have been the decisive positive and negative changes andchallenges in the teachers

      What have been the decisive positive and negative changes and challenges in the teachers' professional roles and teacher-student relationship? • What tools and strategies have the teachers used to overcome difficulties and strengthen their ability to cope? • How has EDT affected teachers' health and well-being?

  2. Apr 2020
    1. def handle_exception(self, job, *exc_info):

      To unit test an exception handler:

      worker = Worker(..., exception_handler=[handle_exception])
      try:
          raise Exception()
      except Exception:
          exc_info = sys.exc_info()
      
      worker.handle_exception(job, *exc_info)
      
    1. failure_ttl

      How long to keep a failed job.

    2. result_ttl=600

      How long to keep a successful job.

    3. job.meta['handled_by'] = socket.gethostname() job.save_meta()

      You can add metadata on the job like keeping track of the number of times a job has been retried for example.

    1. w = Worker([q], exception_handlers=[foo_handler, bar_handler])

      Exception handlers are attached to the worker.

    2. def my_handler(job, exc_type, exc_value, traceback): # do custom things here

      Write an exception handler that requeues a failed job.