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

Rake task to run a FileInventoryJob from the command line #1335

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

hectorcorrea
Copy link
Member

@hectorcorrea hectorcorrea commented Mar 4, 2025

Added a Rake task that kicks off the FileInventoryJob for a given project. It assigns the job to the user indicated in the Rake task but allows you to specify the user credentials (domain,user,password) that will be used to connect to MediaFlux. This is to allows us to test with different accounts outside of the CAS authentication.

bundle exec rake:file_inventory:run[65,hc8719]

Where 65 is the project_id and hc8719 is the netid of the user that the job will be assigned to. In the example above the job will show under my own Dashboard.

Notice that the MediaFlux credentials are prompted on the command line and the password is not written to the Rails log.

Part of #1274

…ry Job and test if that causes the performance to slow down
@coveralls
Copy link

coveralls commented Mar 4, 2025

Coverage Status

coverage: 83.757% (-0.5%) from 84.246%
when pulling 3334ac5 on 1274-session-test
into 55c001e on main.

@hectorcorrea hectorcorrea marked this pull request as ready for review March 5, 2025 21:20
@hectorcorrea hectorcorrea changed the title MediaFlux session test Rake task to run a FileInventoryJob from the command line Mar 5, 2025
Copy link
Member

@carolyncole carolyncole left a comment

Choose a reason for hiding this comment

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

Looks good @hectorcorrea

@carolyncole carolyncole merged commit efd5ca5 into main Mar 6, 2025
2 checks passed
@carolyncole carolyncole deleted the 1274-session-test branch March 6, 2025 18:41
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