When retrieving data from an external data source, Signals Notebook expected data to be returned within 20 seconds. If the data source does not respond within this threshold, Signals Notebook will show a 504 Gateway timeout error when trying to retrieve data.
Please bear in mind this threshold when building external data sources so that they meet this minimum response time.