Skip to content

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

Closed
itkovian wants to merge 6 commits into
hpcugent:masterfrom
itkovian:syncify-user-sync
Closed

Change the main to rely on the Sync class (HPC-7469)#89
itkovian wants to merge 6 commits into
hpcugent:masterfrom
itkovian:syncify-user-sync

Conversation

@itkovian

Copy link
Copy Markdown
Member

No description provided.

Comment thread bin/sync_vsc_users.py
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
Copy Markdown
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?

@itkovian itkovian Nov 26, 2019

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@itkovian conflicts
Is this tested already somewhere?

Comment thread bin/sync_vsc_users.py
if users_fail or quota_fail or vos_fail:
return users_fail + quota_fail + vos_fail
else:
return False

Copy link
Copy Markdown
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 ?

@itkovian itkovian closed this Oct 13, 2025
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