-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix updated timestamp #307
Conversation
d9a4831
to
759c932
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #307 +/- ##
==========================================
- Coverage 98.90% 98.86% -0.04%
==========================================
Files 55 55
Lines 2277 2210 -67
==========================================
- Hits 2252 2185 -67
Misses 25 25
☔ View full report in Codecov by Sentry. |
I am currently not really happy about these changes in the Slurm, Moab and HTCondor site adapters f2c9f1b. Previously the Is having a grace period enough or should we introduced a further timestamp for that use-case? Do you have any opionions on that? @MatterMiners/review On the other hand it can possibly end up in a race condition. BTW.: I checked that the delay introduced between |
I think the "true" solution is to stop using In return, I think it is totally fine to introduce an additional timestamp as a stopgap solution to keep the |
Thanks a lot @maxfischer2781, that was the input I was looking for. 👍 Just to get the idea right, |
Yes, |
9c0fc20
to
023a71c
Compare
tardis/adapters/sites/htcondor.py
Dismissed
return AttributeDict(resource_status=ResourceStatus.Deleted) | ||
else: | ||
return self.handle_response(resource_status) | ||
return self.handle_response(await self._condor_q(resource_attributes)) |
Check failure
Code scanning / CodeQL
Wrong number of arguments in a call Error
method SiteAdapter.handle_response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partial
has been used, which creates a false postive in CodeQL.
c76a913
to
04f3b0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had one minor comment, but no showstoppers. Besides that, it looks good to me. Make it so.
db9586b
to
2ef2018
Compare
@maxfischer2781 and @mschnepf, I think we can continue reviewing this request. The code works at least with HoreKa. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. 👍 Thanks for your work
This reverts commit 47c10d7.
2ef2018
to
58fb461
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go for it.
The original idea was that
created
andupdated
timestamps indicate a change of theDroneState
. However, in the meantime it was also updated in someSiteAdapters
, when the resource status changed, e.g. through aresource_status
call on certainSiteAdapters
. Through thedrone_minimum_lifetime
setting seems to be ignored, becauseresource_status
is called every minute, whiledrone_minimum_lifetime
is usually in the order of hours.created
andupdated
timestamp from adaptersresource_attributes
dictionary, this is only done in theDroneStates
deploy_resource
andresource_status
should return only translated dictionaries of values to eventually modify theresource_attributes
dictionarystop_resource
andterminate_resource
should returnNone
AsyncBulkCall
for theHTCondor
,Moab
andSlurm
site adpter as discussed below.Fixes #296