mirror of
				https://github.com/simon987/hexlib.git
				synced 2025-10-31 08:16:51 +00:00 
			
		
		
		
	Make sure that _id field is present in redis MQ
This commit is contained in:
		
							parent
							
								
									428c82bcfd
								
							
						
					
					
						commit
						62e74ed292
					
				| @ -120,7 +120,7 @@ class RedisMQ(MessageQueue): | ||||
|             task_json = orjson.loads(task) | ||||
|             topic = topic.decode() | ||||
| 
 | ||||
|             if "_id" not in task_json: | ||||
|             if "_id" not in task_json or not task_json["_id"]: | ||||
|                 raise ValueError(f"Task doesn't have _id field: {task}") | ||||
| 
 | ||||
|             # Immediately put in pending queue | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user