Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • D django-remote-submission
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • reflectometry
  • django-remote-submission
  • Issues
  • #14

Closed
Open
Created Jan 26, 2017 by Leal, Ricardo@ricleal

Remote Live logs after '\n' and not on buffer_size

We have:

https://github.com/ornl-ndav/django-remote-submission/blob/master/django_remote_submission/remote.py#L149

        channel.exec_command(command)
        while True:
            current_time = now()
            if channel.recv_ready():
                output = channel.recv(1024).decode('utf-8')
                stdout_handler(current_time, output)

            if channel.recv_stderr_ready():
                output = channel.recv_stderr(1024).decode('utf-8')
                stderr_handler(current_time, output)

i.e., logs are flushed after 1024 bytes. Can we flush them after \n?

See paramiko-expect tail function:

https://github.com/fgimian/paramiko-expect/blob/943630ac499284e6441854a9c4ae1e04301bfdd9/paramiko_expect.py#L213

buffer = self.channel.recv(1) and search for \n.

Is it going to be too slow?

Assignee
Assign to
Time tracking