Replaces LICENSE (GPLv3 -> AGPLv3) and prepends `SPDX-License-Identifier: AGPL-3.0-or-later` to every source file across decnet/, decnet_web/, tests/, scripts/, and tools/. Rationale: closes the GPLv3 ASP loophole so any party operating a modified DECNET as a network service must offer their modified source. Personal copyright (Samuel Paschuan) + inbound=outbound contributions make a future unilateral relicense infeasible. - LICENSE: full AGPL-3.0 text (gnu.org/licenses/agpl-3.0.txt) - COPYRIGHT: project copyright notice - tools/add_spdx_headers.py: idempotent header injector (shebang- and PEP 263-aware) Touches 1565 source files (.py, .ts, .tsx, .js, .jsx, .css, .sh). No behavior change; comments only.
17 lines
717 B
Python
17 lines
717 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Async deploy/mutate lifecycle runner.
|
|
|
|
The runner is invoked by the master API handlers (deploy + mutate) after
|
|
they write ``DeckyLifecycle`` rows and return 202 Accepted to the
|
|
caller. It executes the actual docker work off the request thread,
|
|
flips lifecycle row status through ``running -> succeeded|failed``, and
|
|
emits ``decky.<name>.lifecycle`` bus signals on every transition.
|
|
|
|
Strategy classes encapsulate transport (local docker on master vs
|
|
remote agent over mTLS). ``runner.run_deploy`` / ``run_mutate`` pick
|
|
the right strategy from the request context.
|
|
"""
|
|
from decnet.lifecycle.runner import run_deploy, run_mutate
|
|
|
|
__all__ = ["run_deploy", "run_mutate"]
|