Stop sync job after xxx hours

michaelsage

Active Member
Jul 10, 2020
23
4
43
43
Hi,
I have a bit of a weird issue, sometimes my sync job just runs and runs and won't stop. This means the following days sync task doesn't run (and it also appears to "hang" a garbage collection job). Is there any way to stop a job running after x number of hours? Normally this job completes within an hour, I suspect it something to do with the fact is it's going to an s3 compatible endpoint and is probably not PBSs "fault".

The job won't terminate with a normal stop within the webgui, so I think a force stop after x hours would be the best approach. Is there a way to do this in the GUI or using a script?

Thanks

Michael
 
Hi,
Hi,
I have a bit of a weird issue, sometimes my sync job just runs and runs and won't stop. This means the following days sync task doesn't run (and it also appears to "hang" a garbage collection job). Is there any way to stop a job running after x number of hours? Normally this job completes within an hour, I suspect it something to do with the fact is it's going to an s3 compatible endpoint and is probably not PBSs "fault".
Do you see some errors in the systemd journal during the timespan of the sync job? Please also post proxmox-backup-manager version --verbose

The job won't terminate with a normal stop within the webgui, so I think a force stop after x hours would be the best approach. Is there a way to do this in the GUI or using a script?
Could be done using an api client or proxmox-backup-debug via the api endpoint https://pbs.proxmox.com/docs/api-viewer/index.html#/nodes/{node}/tasks/{upid} but better would be to identify what the issue is so we might fix this.