mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #11660: Catch RQ timeout exception when syncing data sources
This commit is contained in:
@ -32,11 +32,7 @@ class DataSourceView(generic.ObjectView):
|
||||
(DataFile.objects.restrict(request.user, 'view').filter(source=instance), 'source_id'),
|
||||
)
|
||||
|
||||
queue_name = get_queue_for_model(DataSource)
|
||||
sync_enabled = bool(get_workers_for_queue(queue_name))
|
||||
|
||||
return {
|
||||
'sync_enabled': sync_enabled,
|
||||
'related_models': related_models,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user