Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
pushyamig committed Nov 17, 2023
1 parent cba7f8b commit edac317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions dashboard/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
import pandas as pd
from zoneinfo import ZoneInfo
import pangres
import psycopg

from django.conf import settings
from django.db import connections as conns, models
from django.db.models import QuerySet
from django_cron import CronJobBase, Schedule
from google.cloud import bigquery
from sqlalchemy import types, text
from sqlalchemy.engine import ResultProxy
from sqlalchemy.orm import Session, sessionmaker
from sqlalchemy.orm import sessionmaker

from dashboard.common import db_util, utils
from dashboard.common import db_util
from dashboard.models import Course, Resource, AcademicTerms, User


Expand Down Expand Up @@ -45,9 +45,6 @@ def split_list(a_list: list, size: int = 20):

# the util function

def util_submission_function(sql_string, mysql_table, param_object=None, table_identifier=None):
pass


def util_function(sql_string, mysql_table, param_object=None, table_identifier=None):
logger.debug(f'sql={sql_string}')
Expand Down
2 changes: 1 addition & 1 deletion docs/github_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
2. The action is triggered whenever a commit is made to the `master` branch. E.g., when a pull request is merged to `master`.
3. OpenShift projects can periodically pull this image from GHCR. Configure only **_NON-PRODUCTION_** MyLA projects to pull the image…
```sh
oc tag ghcr.io/tl-its-umich-edu/my-learning-analytics:latest my-learning-analytics:latest --scheduled
oc tag ghcr.io/tl-its-umich-edu/my-learning-analytics:latest my-learning-analytics:latest --scheduled --reference-policy=local
```
See the OpenShift documentation "[Managing image streams: Configuring periodic importing of image stream tags](https://docs.openshift.com/container-platform/4.11/openshift_images/image-streams-manage.html#images-imagestream-import_image-streams-managing)" for details.
2 changes: 1 addition & 1 deletion docs/loading_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ docker exec -it student_dashboard /bin/bash -c \
After about 30 to 60 seconds, the cron job should have completed and you should have data!
In the admin interface, there is a table where you can check the status of the cron job runs.

debugging cron use the following command. Once you run this command then go to VSCode and start the 'MyLA Docker Cron'. Add some
Debugging cron use the following command. Once you run this command then go to VSCode and start the 'MyLA Docker Cron'. Add some
Breakpoint to debug at desired location.
```sh
docker exec -it student_dashboard /bin/bash -c "DEBUGPY_WAIT_FOR_ATTACH=True DEBUGPY_ENABLE=TRUE DEBUGPY_REMOTE_PORT=3001 ./manage_debugpy.py runcrons --force"
Expand Down

0 comments on commit edac317

Please sign in to comment.