buildgrid.server.persistence.sql.models module

class buildgrid.server.persistence.sql.models.Job(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

name
action_digest
priority
stage
do_not_cache
cancelled
queued_timestamp
queued_time_duration
worker_start_timestamp
worker_completed_timestamp
result
assigned
n_tries
platform_requirements
status_code
stdout_stream_name
stdout_stream_write_name
stderr_stream_name
stderr_stream_write_name
leases
active_states: List[int] = [0, 1, 2]
active_leases
operations
get_execute_response_protobuf_from_result_digest(data_store)
to_internal_job(data_store, no_result=False, action_browser_url=None, instance_name=None)
class buildgrid.server.persistence.sql.models.Lease(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

id
job_name
status
state
worker_name
to_protobuf()
class buildgrid.server.persistence.sql.models.Operation(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

name
job_name
cancelled
to_protobuf(data_store, no_result=False)
class buildgrid.server.persistence.sql.models.IndexEntry(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

digest_hash
digest_size_bytes
accessed_timestamp
deleted
buildgrid.server.persistence.sql.models.digest_to_string(digest)
buildgrid.server.persistence.sql.models.string_to_digest(string)