question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pull model from server

See original GitHub issue

Rasa Core version: 0.13.2

Python version: 3.6

Operating system (windows, osx, …): Ubuntu 16

Issue:

the method _pull_model_and_fingerprint return always a etag, even the last one is not changed.

    if response.status_code in [204, 304]:
        logger.debug("Model server returned {} status code, indicating "
                     "that no new model is available. "
                     "Current fingerprint: {}"
                     "".format(response.status_code, fingerprint))
        return response.headers.get("ETag")

The returned etag will trigger the updating of agent later in _update_model_from_server:

new_model_fingerprint = _pull_model_and_fingerprint(
        model_server, model_directory, agent.fingerprint)
    if new_model_fingerprint:
        domain_path = os.path.join(os.path.abspath(model_directory),
                                   "domain.yml")
        domain = Domain.load(domain_path)
        policy_ensemble = PolicyEnsemble.load(model_directory)
        agent.update_model(domain, policy_ensemble, new_model_fingerprint)

This will make an File not found error as no zipped model has been pulled from server, but _update_model_from_server tries to load the model in a non-existing tmp directory.

Or did I missed something ?

Content of domain file (if used & relevant):


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jeanveaucommented, Apr 11, 2019

I just create a pull request to fix this bug, please check

0reactions
akeladcommented, Apr 2, 2019

sounds great 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thoughts on Push vs Pull Architectures | by Jeff Poole - Medium
Next, what I call “pull” architectures. This is when the server requests work, usually not directly from the client, but often through an ......
Read more >
Pull technology - Wikipedia
Pull requests form the foundation of network computing, where many clients request data from centralized servers. Pull is used extensively on the Internet ......
Read more >
Server Push versus Client Pull - Web Caching and ... - O'Reilly
Prefetched data can be pushed by servers onto clients or pulled by clients from servers. With server push, servers send prefetched data to...
Read more >
Pull Model - Oracle Help Center
In the pull model, the External Processor has the responsibility of polling for documents to process which it does by using the standard...
Read more >
Push or pull model - MSDN - Microsoft
I have a question, I'm developing an application where a server needs to send data to multiple clients. Now I was thinking of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found