1110-Cron-job-fix-lost-during-merge #1112

Merged
a22erigr merged 3 commits from 1110-Cron-job-fix-lost-during-merge into team_2_week_7 2026-05-22 14:47:01 +00:00
Collaborator

What has been done

Previous PR was lost during merge, I have now readded those fixes. Also removed duplicate setup files

  • DockerCompose/init_sql/01-sensors.sql
    • Removed since setup has been moved to stack
  • DockerCompose/init_sql/03-sensors.-cron-jobs.sql
    • Removed since setup has been moved to stack
  • DockerCompose/stacks/temperature/init_sql/01-sensors.sql
    • We now add the cron extension
    • All cron setup has been moved to this file. Having a separate file for cron setup does not make much sense when we have separated things into stacks
  • DockerCompose/stacks/temperature/init_sql/03-sensors-cron-jobs.sql
    • Has been removed as the separation only was necessary when all SQL-init files were bunched together.
    • It also seemed to run before the above file sometimes, causing problems

I don't think that the scripts functionality needs to be tested, as it has been tested during two different PR's already.
To check that the cron job gets scheduled, use rebuild script, then enter temperature database container and enter sensors database with the command:
psql -U *username found in env* -d sensors;
then check that the job is scheduled with the command:
SELECT * FROM cron.jobs;

## What has been done Previous PR was lost during merge, I have now readded those fixes. Also removed duplicate setup files + DockerCompose/init_sql/01-sensors.sql + Removed since setup has been moved to stack + DockerCompose/init_sql/03-sensors.-cron-jobs.sql + Removed since setup has been moved to stack + DockerCompose/stacks/temperature/init_sql/01-sensors.sql + We now add the cron extension + All cron setup has been moved to this file. Having a separate file for cron setup does not make much sense when we have separated things into stacks + DockerCompose/stacks/temperature/init_sql/03-sensors-cron-jobs.sql + Has been removed as the separation only was necessary when all SQL-init files were bunched together. + It also seemed to run before the above file sometimes, causing problems I don't think that the scripts functionality needs to be tested, as it has been tested during two different PR's already. To check that the cron job gets scheduled, use rebuild script, then enter temperature database container and enter sensors database with the command: `psql -U *username found in env* -d sensors;` then check that the job is scheduled with the command: `SELECT * FROM cron.jobs;`
Collaborator

Review on #1112

Whats done

  • Reviewed cron job fix.

Tested on macOS using Chrome

  • Verified duplicate init SQL files were removed.
  • Verified cron setup was moved into 01-sensors.sql.

Inspected following files

  • DockerCompose/stacks/temperature/init_sql/01-sensors.sql
    • Indentation/code styling
      • Follows standard
    • Naming convention
      • Follows standard
    • Comments
      • Follows standard
    • General code quality
      • Good

What needs to be done

  • Nothing

Conclusion

  • Ready to be merged
# Review on #1112 ## Whats done + Reviewed cron job fix. ### Tested on macOS using Chrome + Verified duplicate init SQL files were removed. + Verified cron setup was moved into 01-sensors.sql. ### Inspected following files + DockerCompose/stacks/temperature/init_sql/01-sensors.sql + Indentation/code styling + Follows standard + Naming convention + Follows standard + Comments + Follows standard + General code quality + Good ## What needs to be done + Nothing ## Conclusion + Ready to be merged
a22erigr merged commit ca2e66b201 into team_2_week_7 2026-05-22 14:47:01 +00:00
a22erigr deleted branch 1110-Cron-job-fix-lost-during-merge 2026-05-22 14:47:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!1112
No description provided.