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

init riverboat - job queue processor #1

Merged
merged 14 commits into from
Sep 19, 2024
Merged

init riverboat - job queue processor #1

merged 14 commits into from
Sep 19, 2024

Conversation

golanglemonade
Copy link
Member

@golanglemonade golanglemonade commented Sep 19, 2024

Startup server:

(⎈ |default:default)➜  riverboat git:(init) task run-dev                 
task: [docker:postgres] docker compose -f ./docker/docker-compose-pg.yml -p postgres up -d
[+] Running 1/0
 ✔ Container postgres  Running                                                                                                                                                                                                                  0.0s 
task: [docker:riverboat:ui::up] docker compose -f ./docker/docker-compose-ui.yml -p riverboat-ui up -d
[+] Running 1/0
 ✔ Container riverboat-ui-ui-1  Running                                                                                                                                                                                                         0.0s 
task: [run-dev] open "http://localhost:8082"
task: [run] go run main.go serve --debug --pretty
2024-09-19T09:09:42-06:00 DBG river.go:41 workers created app=riverboat go_version=go1.23.1 pid=4663
2024-09-19T09:09:42-06:00 DBG river.go:46 queues created app=riverboat go_version=go1.23.1 pid=4663 queues={"default":{"MaxWorkers":100},"email":{"MaxWorkers":100}}
2024-09-19T09:09:42-06:00 INF river.go:61 
          $$\                                $$\                            $$\
          \__|                               $$ |                           $$ |
 $$$$$$\  $$\ $$\    $$\  $$$$$$\   $$$$$$\  $$$$$$$\   $$$$$$\   $$$$$$\ $$$$$$\
$$  __$$\ $$ |\$$\  $$  |$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\  \____$$\\_$$  _|
$$ |  \__|$$ | \$$\$$  / $$$$$$$$ |$$ |  \__|$$ |  $$ |$$ /  $$ | $$$$$$$ | $$ |
$$ |      $$ |  \$$$  /  $$   ____|$$ |      $$ |  $$ |$$ |  $$ |$$  __$$ | $$ |$$\
$$ |      $$ |   \$  /   \$$$$$$$\ $$ |      $$$$$$$  |\$$$$$$  |\$$$$$$$ | \$$$$  |
\__|      \__|    \_/     \_______|\__|      \_______/  \______/  \_______|  \____/

 app=riverboat go_version=go1.23.1 pid=4663
time=2024-09-19T09:09:42.485-06:00 level=DEBUG msg="BatchCompleter: Run loop started"

Send a test email:

(⎈ |default:default)➜  riverboat git:(init) go run test/email/main.go
{"level":"info","time":"2024-09-19T09:10:08-06:00","message":"email job successfully inserted"}

Job processed:

2024-09-19T09:10:08-06:00 INF email.go:65 sending email app=riverboat go_version=go1.23.1 pid=4663 subject="test subject" to=["[email protected]"]
2024-09-19T09:10:08-06:00 DBG email.go:71 running in dev mode app=riverboat directory=fixtures/email go_version=go1.23.1 pid=4663
{"time":"2024-09-19T09:10:08.109779-06:00","level":"INFO","msg":"Sending test email","to":"[email protected]","subject":"test subject","message":"body","html":""}

Signed-off-by: Sarah Funkhouser <[email protected]>
@golanglemonade golanglemonade changed the title inital riverboat init riverboat - job queue processor Sep 19, 2024
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
@golanglemonade golanglemonade marked this pull request as ready for review September 19, 2024 15:16
Signed-off-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
13.2% Coverage on New Code (required ≥ 20%)

See analysis details on SonarCloud

@golanglemonade golanglemonade merged commit ff026cd into main Sep 19, 2024
8 of 9 checks passed
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.

2 participants