Skip to content
Snippets Groups Projects
Select Git revision
  • ea8743c7cbdb646627c05aa4277d433e3b1efe4d
  • dev default protected
  • new_pvl_core
  • 8.0-test
  • lts-testing
  • revert-5695-ideal_serial
  • 9.0
  • 9.0.0_RC2
  • 8.0
  • 8.0.5_LTS
  • code8.3.0
  • 9.0.0
  • 9.0.0_RC1
  • gdal_pvl
  • Kelvinrr-patch-3
  • Kelvinrr-patch-2
  • 8.3
  • pvl_core
  • 8.2
  • 8.1
  • Kelvinrr-patch-1
  • 8.0.4
  • 8.3.0
  • 8.2.0
  • 8.1.0
  • 8.0.3
  • 8.0.2
  • 8.0.1
  • 8.0.0
  • 8.1.0_RC2
  • 8.1.0_RC1
  • 8.0.0_RC2
  • 8.0.0_RC1
  • 7.2.0
  • 7.1.0
  • 7.0.0
  • 7.2.0_RC1
  • 7.1.0_RC1
  • 7.0.0_RC2
  • 7.0.0_RC1
  • 6.0.0
41 results

FunctionalTestsIsisImportChandrayaan2.cpp

Blame
  • get_job_amqp_server.py 680 B
    from amqp_server import AMQPServer
    from job_cache import JobCache
    
    class GetJobAMQPServer(AMQPServer):
      
        def __init__(self, host, queue):
            self.type = "poll"
            self.jobCache = JobCache('redis', 6379, 0)
            super(GetJobAMQPServer, self).__init__(host, queue)      
    
        def execute_callback(self, requestBody):
            if "jobId" in requestBody:
                redis_res = self.jobCache.get(requestBody["jobId"])
                print(f"Redis response: {redis_res}")
                return redis_res
            else:
                return 42
          
        def run(self):
            print(f"Starting AMQP server of type {self.type}...")
            super(GetJobAMQPServer, self).run()