summaryrefslogtreecommitdiffstats
path: root/src/orchestrator
AgeCommit message (Collapse)Author
2020-11-14Add scheduler shutdown function, to drop multibarMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-13Pass Submit object around when scheduling jobsMatthias Beyer
This is needed because we need to refer to the submit when creating a Job entry in the database. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-13Rename: JobHandle::get_result() -> JobHandle::run()Matthias Beyer
This renames the method, because this is way more descriptive of what the method actually does. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-13Move log collecting to endpoint codeMatthias Beyer
This patch moves the log-setup and -collecting to the endpoint implementation, that takes care of running the job. This is required because here we aggregate the log and here we know all information that need to be written to the database, so it seems natural to move the log-collecting code (and everything else related to the database entry for the job) to this position in the code. This implies that the "job" is written to the database _after_ it was run. This is due to the fact that we cannot write the job entry before we have the logs. We _have to_ collect the logs in memory (we can also write to a log-dump-file, of course), but we cannot create the job object in the database and then append the logs to it. This might change in the future, but for now that's the way it is done. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-12Move log receiving to dedicated typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-11Copy package source to container before running buildMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-09Report created packages at the end of orchestrator runMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-09Add more trace outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-08Remove unused imports, sort importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-07Implement progress bars in orchestratorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-07Fix: No need in registering the resulting pathsMatthias Beyer
They are already registered when the result-TARs are unpacked. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-07Temp Fix: Collect log receiversMatthias Beyer
This is another temporary fix to get everything working. The issue was, that the receivers were immediately dropped and did not life long enough so that the sending side could actually write to the channels. This keeps the receivers alive. The real fix is to actually write the logs to some destination. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-06Add logging output and error context messagesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-06Rename builder variable name for less cryptic nameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-06Implement orchestration routineMatthias Beyer
This patch adds the first implementation of the orchestration routine. This implementation does _NOT_ yet include any database stuff or any output manouvering, such as progress reporting to CLI or log routing. It is just the bare minimal to get a working POC. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-05Remove EndpointManagerMatthias Beyer
This patch removes the `EndpointManager` type, which did nothing except wrap the `ConfiguredEndpoint` and make things way more complicated than they need to be. Now, the `EndpointScheduler` holds the `ConfiguredEndpoint`s directly in a `Arc<RwLock<_>>` and manages them without the additional layer of complexity. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-04Let the Orchestrator have a file log sink factory (optionally)Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-04Pass database to OrchestratorSetupMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-04Add module for OrchestratorMatthias Beyer