Celery 5.x introduced a new worker argument format that is not backwards-compatible with the older Celery 4.x format. This created a conundrum since we use one service unit for both Debian 10 (4.x) and Debian 11 (5.x). Instead of worse hacks, create a wrapper script to start the worker with the correct arguments instead.
		
			
				
	
	
		
			17 lines
		
	
	
		
			425 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			425 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| # Parallel Virtual Cluster Provisioner API provisioner worker unit file
 | |
| 
 | |
| [Unit]
 | |
| Description = Parallel Virtual Cluster API provisioner worker
 | |
| After = network-online.target
 | |
| 
 | |
| [Service]
 | |
| Type = simple
 | |
| WorkingDirectory = /usr/share/pvc
 | |
| Environment = PYTHONUNBUFFERED=true
 | |
| Environment = PVC_CONFIG_FILE=/etc/pvc/pvcapid.yaml
 | |
| ExecStart = /usr/share/pvc/pvcapid-worker.sh
 | |
| Restart = on-failure
 | |
| 
 | |
| [Install]
 | |
| WantedBy = multi-user.target
 |