Skip to content

Commit

Permalink
update idds messages table null constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
wguanicedew committed Apr 25, 2023
1 parent bd36811 commit c4c134c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions main/lib/idds/orm/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ class Message(BASE, ModelBase):
locking = Column(EnumWithValue(MessageLocking), nullable=False)
source = Column(EnumWithValue(MessageSource), nullable=False)
destination = Column(EnumWithValue(MessageDestination), nullable=False)
request_id = Column(BigInteger().with_variant(Integer, "sqlite"), nullable=False)
request_id = Column(BigInteger().with_variant(Integer, "sqlite"))
workload_id = Column(Integer())
transform_id = Column(Integer(), nullable=False)
transform_id = Column(Integer())
processing_id = Column(Integer())
num_contents = Column(Integer())
retries = Column(Integer(), default=0)
Expand Down
2 changes: 1 addition & 1 deletion main/lib/idds/tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def print_workflow_template(workflow, layers=0):
# reqs = get_requests(request_id=381520, with_request=True, with_detail=False, with_metadata=True)
# reqs = get_requests(request_id=28182323, with_request=True, with_detail=False, with_metadata=True)
# reqs = get_requests(request_id=385554, with_request=True, with_detail=False, with_metadata=True)
reqs = get_requests(request_id=458999, with_request=True, with_detail=False, with_metadata=True)
reqs = get_requests(request_id=479187, with_request=True, with_detail=False, with_metadata=True)
for req in reqs:
# print(req['request_id'])
# print(req)
Expand Down
4 changes: 2 additions & 2 deletions main/lib/idds/tests/test_migrate_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def migrate():
for old_request_id in old_request_ids: # noqa E115 # doma 183
reqs = cm1.get_requests(request_id=old_request_id, with_metadata=True)

cm2 = ClientManager(host=dev_host)
# cm2 = ClientManager(host=dev_host)
# cm2 = ClientManager(host=doma_host)
# cm2 = ClientManager(host=atlas_host)
# cm2 = ClientManager(host=slac_k8s_dev_host)
cm2 = ClientManager(host=slac_k8s_dev_host)
# cm2 = ClientManager(host=cern_k8s_dev_host)
# print(reqs)

Expand Down
12 changes: 6 additions & 6 deletions monitor/data/conf.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

var appConfig = {
'iddsAPI_request': "https://lxplus807.cern.ch:443/idds/monitor_request/null/null",
'iddsAPI_transform': "https://lxplus807.cern.ch:443/idds/monitor_transform/null/null",
'iddsAPI_processing': "https://lxplus807.cern.ch:443/idds/monitor_processing/null/null",
'iddsAPI_request_detail': "https://lxplus807.cern.ch:443/idds/monitor/null/null/true/false/false",
'iddsAPI_transform_detail': "https://lxplus807.cern.ch:443/idds/monitor/null/null/false/true/false",
'iddsAPI_processing_detail': "https://lxplus807.cern.ch:443/idds/monitor/null/null/false/false/true"
'iddsAPI_request': "https://lxplus810.cern.ch:443/idds/monitor_request/null/null",
'iddsAPI_transform': "https://lxplus810.cern.ch:443/idds/monitor_transform/null/null",
'iddsAPI_processing': "https://lxplus810.cern.ch:443/idds/monitor_processing/null/null",
'iddsAPI_request_detail': "https://lxplus810.cern.ch:443/idds/monitor/null/null/true/false/false",
'iddsAPI_transform_detail': "https://lxplus810.cern.ch:443/idds/monitor/null/null/false/true/false",
'iddsAPI_processing_detail': "https://lxplus810.cern.ch:443/idds/monitor/null/null/false/false/true"
}

0 comments on commit c4c134c

Please sign in to comment.