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

Change the main to rely on the Sync class (HPC-7469) #89

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

itkovian
Copy link
Member

No description provided.

if opts.options.user:
changed_accounts = client.account.institute[institute].modified[last_timestamp].get()[1]
if self.options.user:
changed_accounts, _ = self.apc.get_accounts() # we ignore inactive accounts
Copy link
Collaborator

Choose a reason for hiding this comment

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

no institute nor timestamp passed?

Copy link
Member Author

@itkovian itkovian Nov 26, 2019

Choose a reason for hiding this comment

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

No, this taken care of by the Sync class.

Copy link
Member

Choose a reason for hiding this comment

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

should be self.get_accounts, the timestamp is processed in sync class, not APclient

Copy link
Member

Choose a reason for hiding this comment

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

and found no clue where the site/institute should have been taken care of

@kwaegema
Copy link
Member

@itkovian conflicts
Is this tested already somewhere?

if users_fail or quota_fail or vos_fail:
return users_fail + quota_fail + vos_fail
else:
return False
Copy link
Member

Choose a reason for hiding this comment

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

nothing done with stats? set self.thresholds = stats ?

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.

3 participants