Skip to main content

This package is a part of Momotor, a tool for automated processing of digital content.

Momotor accepts digital content as a product bundle and generates a result bundle from this product under control of a recipe bundle.

Momotor is like a continuous integration system, but broader in scope. The type of content that Momotor can process is not restricted; each recipe may impose its own constraints. One application of Momotor in an educational setting is the automatic generation of feedback on work submitted for programming assignments.


The momotor-engine-proto package provides the Momotor RPC protocol for communication between the Momotor broker and clients, and also for the communication between the Momotor broker and workers.

The protocol uses the Google RPC (gRPC) protocol.

Worker connection recovery

get_authenticated_channel() keeps its shared 900-second ping interval. Pass keepalive_time=None to disable transport keepalive. The optional keepalive_timeout sets a positive, finite acknowledgement timeout. It defaults to the supplied Configuration value, or 20 seconds. Both durations reject zero, negative, non-finite, and boolean values.

Workers can select keepalive_time=15, keepalive_timeout=10. An unacknowledged ping closes the transport within at most 25 seconds of a silent failure, subject to event-loop scheduling. Reconnect delay and authentication time are additional. A worker with a 5-second retry cap and 10-second authentication timeout can make its next connection attempt within 30 seconds and complete an available connection within 40 seconds. The broker's normal session timeout is 60 seconds.

An outstanding getTask counts as an active call even when no work matches. Repeated pings therefore continue during a healthy long wait. By default, a channel with no active RPCs sends no pings. Set keepalive_permit_without_calls=True to probe such channels too. The caller must replace a failed authenticated channel and cancel its old work. A PING proves transport liveness, not broker application progress or assignment ownership.

A supplied config=Configuration(...) provides window sizes, TLS hostname settings, the acknowledgement timeout, and the idle-call policy. Explicit keepalive arguments override those policy values. keepalive_time always wins, including its default of 900. The helper permits unlimited pings without DATA and sets the minimum spacing to the smaller of one second and the ping interval. Confirm that the broker and intervening proxies permit your chosen ping rate. A peer that rejects frequent pings can close the connection instead.

Transport tests exercise silent loss, explicit disconnect, idle channels, and long RPCs over TCP, including certificate-verified TLS, against the installed grpclib version in the supported >=0.4.9,<0.5 range. The minimum excludes 0.4.7, whose stream reset after a TLS disconnect can raise AttributeError. Policy logs contain durations and flags, never authentication credentials. grpclib.protocol debug logging provides transport close reasons, including keepalive expiry.

Metadata

Release files for momotor-engine-proto 6.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for momotor-engine-proto 6.0.2
File Size Uploaded Provenance Actions
momotor_engine_proto-6.0.2.tar.gz 72.1 kB Without provenance Details for momotor_engine_proto-6.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for momotor-engine-proto 6.0.2
File Interpreter ABI Platform Actions
momotor_engine_proto-6.0.2-py3-none-any.whl Python 3 none any Details for momotor_engine_proto-6.0.2-py3-none-any.whl

Total release size: 133.1 kB

Release files / momotor_engine_proto-6.0.2.tar.gz

Download URL momotor_engine_proto-6.0.2.tar.gz
Size 72.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fe3f7ba917b21f0aa0d0df344785e5bf8939179d68c509ea3c9c0c82d1c8e8f8
BLAKE2b-256 checksum
How to use checksums
863538007df42112e02e3425e99a0f573057eac019e1d92e0293e892e21814a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / momotor_engine_proto-6.0.2-py3-none-any.whl

Download URL momotor_engine_proto-6.0.2-py3-none-any.whl
Size 61.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea12c181bddb51afb17d1fe713c494d252a3ea19435f0da0100fc3344bf2bda4
BLAKE2b-256 checksum
How to use checksums
2659122b81ed1cf2556c45bb70c9fb289a809afa2577f28038decf9b564ca1b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for momotor-engine-proto 6.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page