Skip to content

Ways to run background jobs #4

Open
@rguiscard

Description

@rguiscard

Is there an easy way to run background job (blocking or non-blocking is fine; maybe use fiber;) similar to ActiveJob in Rails? I understand it may not fit what mruby-shelf does, but it does provide some convenience. For example, a way to insert a middleware which will be called every 1 second or so. The simplehttpserver seems able to run in non-blocking mode, but I don't see how it works with mruby-shelf in non-blocking mode.

One use case that a mruby application periodically reads values from sensors (temperature, humidity, etc.) and provides a web interface for user. It keeps records of measurements for every second. Users can use web browser to get these records occasionally.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions