-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Run cron jobs in Docker #4387
Run cron jobs in Docker #4387
Conversation
Add ia_db_pw_file for 5 * * * * python $SCRIPTS/openlibrary-server /olsystem/etc/openlibrary.yml runmain openlibrary.solr.process_stats --load-from-db > /var/log/openlibrary/loanstats.log 2>&1 And |
Added the solrwriter change where both |
<html>
<head>
<title>Apache Tomcat/6.0.39 - Error report</title>
<style>
<!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}
-->
</style>
</head>
<body>
<h1>HTTP Status 400 - ERROR: [doc=loans/loan-1944635007] Error adding field
\'duration_hours_i\'=\'0.0008333333333333334\'</h1>
<HR size="1" noshade="noshade">
<p><b>type</b> Status report</p>
<p><b>message</b> <u>ERROR: [doc=loans/loan-1944635007] Error adding field
\'duration_hours_i\'=\'0.0008333333333333334\'</u></p>
<p><b>description</b> <u>The request sent by the client was syntactically incorrect.</u></p>
<HR size="1" noshade="noshade">
<h3>Apache Tomcat/6.0.39</h3>
</body>
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! One last change: Can you update our deploy script to make sure it starts this service?
I made that change on #4457 but that is still not landed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I see restart always on the cron and #4457 has landed, going to merge this as well. |
Blocked by:
internetarchive/olsystem#110Closes #4383, #4542
Subtask of #4060
We are running on an oldev-based node but we want to run the cronjobs that are in
/olsystem/etc/cron.d
.What about
Caution on the double run
?https://stackoverflow.com/questions/37458287/how-to-run-a-cron-job-inside-a-docker-container
Technical
Testing
Screenshot
Stakeholders