
A Docker service for intelligently polling an MLS for changes and emitting updates.
Start by cloning the repository locally:
git clone https://github.com/boxmls/service-poller -b develop
docker-compose up --build --renew-anon-volumes

Property. Required.Agent. Optional.Office. Optional.OpenHome. Optional.VirtualOpenHome. Optional.Tour. Optional.Docker service Poller is working with the following services in symbiosis:
Before Poller setup, be sure that:
The Docker Poller is built on nodejs and uses the following PM2 processes:
sync-property. It is watching for RETS Property resource updates depending on property last modified date time.sync-property-media. Optional. It is watching for RETS Property resource updates depending on media last modified date time.sync-agent. It is watching for RETS Agent resource updates depending on agent last modified date time.sync-office. It is watching for RETS Office resource updates depending on office last modified date time.sync-openhome. Optional. It is synchronizing RETS OpenHome resource every 3 hours by default.sync-virtualopenhome. Optional. It is synchronizing RETS VirtualOpenHome resource every 3 hours by default.sync-tour. Optional. It is synchronizing RETS OpenHome resource every 3 hours by default.sync-deep. RabbitMQ consumer, which is watching for agent, office, openhome, virtualopenhome and tour updates and updates associated properties.media-fetch. RabbitMQ consumer, which is watching for property updates and updates its images if needed.rets-proxy-server. All requests to RETS API are being proxied via this internal proxy server, which queues them to prevent RETS Session errors due to requests limits.Updates MLS configuration (flush caches and re-upload handlebars).
CACHE_FLUSH=true DEBUG=mls grunt mls-config
It Requests MLS Configuration for particular defined MLS. If MLS_SYS is not defined, - error will be returned.
Sync all (property,office,agent,openhome,virtualopenhome,tour) RETS RAW data.
To sync all data.
DEBUG=grunt,sync,model:mls,ret-request nohup grunt --stack-size=4096 sync &> sync.out.log&
To sync only specific type:
TYPE=property DEBUG=grunt,sync,model:mls,ret-request nohup grunt --stack-size=4096 sync &> sync.property.out.log&
TYPE=agent DEBUG=grunt,sync,model:mls,ret-request nohup grunt --stack-size=4096 sync &> sync.agent.out.log&
TYPE=office DEBUG=grunt,sync,model:mls,ret-request nohup grunt --stack-size=4096 sync &> sync.office.out.log&
Scrolls all or specific items of the provided type (e.g. 'agent') and (re)normalize them.
Parameters:
DEBUG=* TYPE=property SIZE=10 nohup grunt --stack-size=4096 normalize &> normalize.property.out.log&
DEBUG=* TYPE=agent SIZE=10 nohup grunt --stack-size=4096 normalize &> normalize.agent.out.log&
DEBUG=* TYPE=office SIZE=10 nohup grunt --stack-size=4096 normalize &> normalize.office.out.log&
To normalize the item by its ID ( note: you can re-normalize ONLY data tied to the current MLS_SYS ):
QUERY="_id:sfar-380147" DEBUG=* TYPE=property grunt normalize
Do you have any questions. Please, visit Support page for consulting and help.
Content type
Image
Digest
Size
485.9 MB
Last updated
over 4 years ago
docker pull boxmls/service-poller