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

[crons-python] automate crontab, update host, rename project & monitor #310

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

realkosty
Copy link
Collaborator

@realkosty realkosty commented Nov 1, 2023

  • automate crontab setup - now deployment completely automated, even to a brand new host as long as host has python3.10 installed.
  • update target deployment host from tda-application-monitoring to the new Ubuntu 22.04 LTS host empower-tda-and-crons
  • update python version for the new host
  • update project name and monitor name

Testing

./deploy_project.sh
Checking ssh connection can be established...
Checking state of current deployment...
Copying code to remote directory...
Code copied.
No need to install requirements, because no changes to requirements.txt, env exists on remote host and is not empty.
EXISTING crontab:
no crontab for kosty
---
UPDATED crontab:

*/5 * * * * /home/kosty/empower-crons-python/run.sh
---
Done. New code should be picked up when cron job runs next time.
./deploy_project.sh
Checking ssh connection can be established...
Checking state of current deployment...
Copying code to remote directory...
Code copied.
No need to install requirements, because no changes to requirements.txt, env exists on remote host and is not empty.
EXISTING crontab:
*/5 * * * * /home/kosty/empower-crons-python/run.sh
---
UPDATED crontab:
*/5 * * * * /home/kosty/empower-crons-python/run.sh
---
Done. New code should be picked up when cron job runs next time.

@realkosty realkosty requested a review from ndmanvar November 1, 2023 16:58
@realkosty realkosty force-pushed the crons-rename-and-change-host branch from 9aaf6de to fc3a724 Compare November 1, 2023 23:10
@realkosty realkosty changed the title [crons-python] rename project, change deployment host [crons-python] automate crontab, update host, rename project & monitor Nov 1, 2023
@realkosty realkosty force-pushed the crons-rename-and-change-host branch from fc3a724 to 3d5b956 Compare November 3, 2023 03:11
@realkosty realkosty merged commit b22b088 into master Nov 6, 2023
1 check passed
@realkosty realkosty deleted the crons-rename-and-change-host branch November 6, 2023 17:58
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