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

Hotfix/memory usage #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Hotfix/memory usage #36

wants to merge 1 commit into from

Conversation

cableman
Copy link

Link to ticket

https://jira.itkdev.dk/browse/SUPP0RT-1261 and https://jira.itkdev.dk/browse/SUPP0RT-1264

Description

When symfony commands do not complete the changes to the database is not commited to the database.

Screenshot of the result

Screenshot from 2023-10-25 15-42-01

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

N/A

@cableman cableman changed the base branch from develop to master October 25, 2023 14:11
Comment on lines +3 to +6
# This do not work when running through docker compose exec.
# It defaults to /home/deploy and not the working dir.
#
#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
Copy link
Contributor

Choose a reason for hiding this comment

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

How and where does this not evaluate to /app/bin when run with docker compose exec?

I assume it's run as docker compose --file docker-compose.server.yml exec phpfpm bin/read-all-feeds and in this case the working directory must be /app (otherwise bin/read-all-feeds does not exist).

Copy link
Author

Choose a reason for hiding this comment

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

See the servers cron job where it executes from.

It returns no-such-file /home/deploy/console @rimi-itk so the old way don't default to /app/bin as not bash context have been loaded...

#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
#
# So for now lets assume we always are inside an ITKDev docker cotainer.
dir=/app/bin
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
dir=/app/bin
dir=$(cd $(dirname "$0") && pwd)

or

Suggested change
dir=/app/bin
# @see https://stackoverflow.com/a/1638397
dir=$(cd $(dirname "$(readlink -f "$0")") && pwd)

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.

4 participants