Skip to content

Changed sync timestamp location from file to directory#223

Open
wluyima wants to merge 2 commits intomainfrom
odoo-openelis2
Open

Changed sync timestamp location from file to directory#223
wluyima wants to merge 2 commits intomainfrom
odoo-openelis2

Conversation

@wluyima
Copy link
Contributor

@wluyima wluyima commented Feb 11, 2026

Changed env var for sync timestamp location from file to directory

Copy link
Contributor

@corneliouzbett corneliouzbett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should omit the check for existence of eip-odoo-openelis service as we don't it for the rest. Otherwise, the rest of changes looks fine.

scripts/start.sh Outdated
Comment on lines 35 to 42
# Create the directory to store sync timestamp file for eip-odoo-openelis service
while read -r service; do
if [ "$service" == 'eip-odoo-openelis' ]; then
echo "Found eip-odoo-openelis service, configuring directory to store sync timestamp file"
export EIP_ODOO_OPENELIS_DATA_DIR=$DISTRO_PATH/data/eip_odoo_openelis
break
fi
done < /tmp/defined_services.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is unnecessary. I think it's ok to always set EIP_ODOO_OPENELIS_DATA_DIR in regardless of whether the service exists or not.

Copy link
Contributor Author

@wluyima wluyima Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then what would be its purpose if the service does not exist? I think it is prudent not to.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand and I agree with you. However, we haven't done any checks for the other exports e.g. https://github.com/ozone-his/ozone-docker-compose/blob/main/scripts/utils.sh#L25-L52, plus start scripts are meant for demo and evaluation purposes. In production deployment, you would need to define these env vars manually based on which services to deploy. What I'm asking here is to be consistent with others

Comment on lines 52 to -53
export EIP_ODOO_OPENELIS_ROUTES_PATH=$DISTRO_PATH/binaries/eip-odoo-openelis
export EIP_SYNC_TASK_LAST_RUN_TS_FILE=$DISTRO_PATH/odoo_openelis_sync_ts.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep this, let's rename to the new env var EIP_ODOO_OPENELIS_DATA_DIR

@wluyima
Copy link
Contributor Author

wluyima commented Feb 16, 2026

Updated the PR

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