Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOISSUE - Enhance Proplet #35

Closed
wants to merge 60 commits into from
Closed

Conversation

JeffMboya
Copy link
Contributor

@JeffMboya JeffMboya commented Dec 11, 2024

What type of PR is this?

This is an optimization

What does this do?

  • Eliminates duplicate error logging
  • Integrates the mqtt package from the pkg/mqtt directory in the Proplet implementation
  • Parses the WasmFile during the start command, rather than at the initial startup of the Proplet
  • Replaces a shared runtime with a single runtime per task/app

Which issue(s) does this PR fix/relate to?

No issue

Have you included tests for your changes?

No

Did you document any new/modified features?

No

Notes

drasko and others added 30 commits August 7, 2024 15:18
NOISSUE -  Proof of Concept For Wasm Orchestrator
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
NOISSUE - Add architecture diagram
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Call subscribe after service has started to subscribe to wildcard topic
PROP- 25 - Implement Manager Service
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
* chore: remove unused files

Signed-off-by: Rodney Osodo <[email protected]>

* fix: add ci for lint and build check

Signed-off-by: Rodney Osodo <[email protected]>

* chore: add apache license

Signed-off-by: Rodney Osodo <[email protected]>

---------

Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: JeffMboya <[email protected]>

Add requests, responses, transport,endpoint and service files

Signed-off-by: JeffMboya <[email protected]>

Remove proplet.go

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Add mqtt client; remove http client

Signed-off-by: JeffMboya <[email protected]>

Add config.json

Signed-off-by: JeffMboya <[email protected]>

Update dependencies

Signed-off-by: JeffMboya <[email protected]>

Add errors

Signed-off-by: JeffMboya <[email protected]>

Rename from worker to proplet

Signed-off-by: JeffMboya <[email protected]>

Use WazeroRuntime

Signed-off-by: JeffMboya <[email protected]>

Add /create and /alive topics

Signed-off-by: JeffMboya <[email protected]>

Refactor mqtt.go

Signed-off-by: JeffMboya <[email protected]>

Fix service.go

Signed-off-by: JeffMboya <[email protected]>

Add different start and stop topics

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

Pre-configure registry during Proplet deployment; allow for registry update

Signed-off-by: JeffMboya <[email protected]>

Update topic

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate methods

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

move README to docs repo

Signed-off-by: JeffMboya <[email protected]>

move main.go to proplet/main.go

Signed-off-by: JeffMboya <[email protected]>

rename initializeProplet to newService

Signed-off-by: JeffMboya <[email protected]>

Enable manual upload of wasm files

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate config validation

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate config validation; add slogger

Signed-off-by: JeffMboya <[email protected]>

Fix service.go

Signed-off-by: JeffMboya <[email protected]>

Rename token to password

Signed-off-by: JeffMboya <[email protected]>

Move payloads to the top

Signed-off-by: JeffMboya <[email protected]>

Move ptopics to the top; use substitution

Signed-off-by: JeffMboya <[email protected]>

Replace variable times with consts

Signed-off-by: JeffMboya <[email protected]>

Use ticker instead of time.Sleep

Signed-off-by: JeffMboya <[email protected]>

Move responses and request to api folder

Signed-off-by: JeffMboya <[email protected]>

Move config and m qtt to repository folder

Signed-off-by: JeffMboya <[email protected]>

Move config.json to repository folder

Signed-off-by: JeffMboya <[email protected]>

Move runtime.go to service.go

Signed-off-by: JeffMboya <[email protected]>

Restructure service.go

Signed-off-by: JeffMboya <[email protected]>

Add architecture diagram

Signed-off-by: JeffMboya <[email protected]>

Add docs

Signed-off-by: JeffMboya <[email protected]>

feat(manager): implement basic crud for worker and task

feat: add magistrala stack

Signed-off-by: Rodney Osodo <[email protected]>

refactor: rename worker to proplet

Signed-off-by: Rodney Osodo <[email protected]>

fix: add mqtt client

Signed-off-by: Rodney Osodo <[email protected]>

remove previous scheduler implementation

Signed-off-by: Rodney Osodo <[email protected]>

fix: remove oauth URLs

Signed-off-by: Rodney Osodo <[email protected]>

refactor(manager): combine mqtt handlers to service

Call subscribe after service has started to subscribe to wildcard topic

first commit

Signed-off-by: JeffMboya <[email protected]>

Add requests, responses, transport,endpoint and service files

Signed-off-by: JeffMboya <[email protected]>

Remove proplet.go

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Rename endpoints

Signed-off-by: JeffMboya <[email protected]>

Add mqtt client; remove http client

Signed-off-by: JeffMboya <[email protected]>

Add config.json

Signed-off-by: JeffMboya <[email protected]>

Update dependencies

Signed-off-by: JeffMboya <[email protected]>

Add errors

Signed-off-by: JeffMboya <[email protected]>

Rename from worker to proplet

Signed-off-by: JeffMboya <[email protected]>

Use WazeroRuntime

Signed-off-by: JeffMboya <[email protected]>

Add /create and /alive topics

Signed-off-by: JeffMboya <[email protected]>

Refactor mqtt.go

Signed-off-by: JeffMboya <[email protected]>

Fix service.go

Signed-off-by: JeffMboya <[email protected]>

Add different start and stop topics

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

Pre-configure registry during Proplet deployment; allow for registry update

Signed-off-by: JeffMboya <[email protected]>

Update topic

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate methods

Signed-off-by: JeffMboya <[email protected]>

Update README

Signed-off-by: JeffMboya <[email protected]>

move README to docs repo

Signed-off-by: JeffMboya <[email protected]>

move main.go to proplet/main.go

Signed-off-by: JeffMboya <[email protected]>

rename initializeProplet to newService

Signed-off-by: JeffMboya <[email protected]>

Enable manual upload of wasm files

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate config validation

Signed-off-by: JeffMboya <[email protected]>

Remove duplicate config validation; add slogger

Signed-off-by: JeffMboya <[email protected]>

Fix service.go

Signed-off-by: JeffMboya <[email protected]>

Rename token to password

Signed-off-by: JeffMboya <[email protected]>

Move payloads to the top

Signed-off-by: JeffMboya <[email protected]>

Move ptopics to the top; use substitution

Signed-off-by: JeffMboya <[email protected]>

Replace variable times with consts

Signed-off-by: JeffMboya <[email protected]>

Use ticker instead of time.Sleep

Signed-off-by: JeffMboya <[email protected]>

Move responses and request to api folder

Signed-off-by: JeffMboya <[email protected]>

Move config and m qtt to repository folder

Signed-off-by: JeffMboya <[email protected]>

Move config.json to repository folder

Signed-off-by: JeffMboya <[email protected]>

Move runtime.go to service.go

Signed-off-by: JeffMboya <[email protected]>

Restructure service.go

Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
@JeffMboya JeffMboya changed the title NOISSUE - Fix duplicate logging NOISSUE - Enhance Proplet Dec 15, 2024
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
@JeffMboya JeffMboya self-assigned this Dec 15, 2024
@JeffMboya JeffMboya marked this pull request as ready for review December 15, 2024 19:04
Signed-off-by: JeffMboya <[email protected]>
Signed-off-by: JeffMboya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants