Project archiving not possible due to active or queued jobs

Hi

We would like to archive a Project within Cryosparc 4.5.3 but we get this message:

Unable to archive P121: ServerError: Error archiving project P121 - project has active or queued jobs

command_core

2024-06-20 18:20:07,025 wrapper ERROR | JSONRPC ERROR at archive_project
2024-06-20 18:20:07,025 wrapper ERROR | Traceback (most recent call last):
2024-06-20 18:20:07,025 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/commandcommon.py”, line 196, in wrapper
2024-06-20 18:20:07,025 wrapper ERROR | res = func(*args, **kwargs)
2024-06-20 18:20:07,025 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/commandcommon.py”, line 265, in wrapper
2024-06-20 18:20:07,025 wrapper ERROR | return func(*args, **kwargs)
2024-06-20 18:20:07,025 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/command_core/init.py”, line 9030, in archive_project
2024-06-20 18:20:07,025 wrapper ERROR | assert active_and_queued_jobs_count == 0, f"Error archiving project {project_uid} - project has active or queued jobs"
2024-06-20 18:20:07,025 wrapper ERROR | AssertionError: Error archiving project P121 - project has active or queued jobs
2024-06-20 18:24:26,228 wrapper ERROR | JSONRPC ERROR at archive_project
2024-06-20 18:24:26,228 wrapper ERROR | Traceback (most recent call last):
2024-06-20 18:24:26,228 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/commandcommon.py”, line 196, in wrapper
2024-06-20 18:24:26,228 wrapper ERROR | res = func(*args, **kwargs)
2024-06-20 18:24:26,228 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/commandcommon.py”, line 265, in wrapper
2024-06-20 18:24:26,228 wrapper ERROR | return func(*args, **kwargs)
2024-06-20 18:24:26,228 wrapper ERROR | File “/opt/cryoSPARC2/cryosparc2_master/cryosparc_command/command_core/init.py”, line 9030, in archive_project
2024-06-20 18:24:26,228 wrapper ERROR | assert active_and_queued_jobs_count == 0, f"Error archiving project {project_uid} - project has active or queued jobs"
2024-06-20 18:24:26,228 wrapper ERROR | AssertionError: Error archiving project P121 - project has active or queued jobs

But there is no job queued or running for that Project. What can we do?

Best wishes

1 Like

You may want to check whether some jobs, for one reason or another, are still considered active without showing up in the Current Jobs tab.

cryosparcm icli # enter the interactive CLI
project_id = 'P121'
active_states = ['queued', 'waiting', 'launched', 'started', 'running']
for job in db.jobs.find({'project_uid': project_id, 'status': {'$in': active_states}}):
    print(f"{job['project_uid']} {job['uid']}: {job['status']}")
exit

For a hypothetical job PX JY that you know is no longer active, you may issue the command

cryosparcm cli "set_job_status('PX', 'JY', 'killed')"

Do these steps enable you to archive project P121?

Thanks. Yes two jobs came as output:

P121 J152: running
P121 J145: running

But this jobs where not in the queue and even in the Project visible. But after the set_job_status command i could archive it.