Job/project forced removal for a deleted project directory

I need to delete a job from a deleted project. All job related data have been deleted at the filesystem level: the project was created on incorrect filesystem location and then was deleted after job submission.

I tried the cli command:

cryosparcm cli "set_job_status('P1', 'J2', 'killed')"
Encountered error for method "set_job_status" with params ('P1', 'J2', 'killed'):
ServerError: validation error: lock file for P1 not found at /home_local/cryosparc/username/P1/cs.lock
Traceback (most recent call last):
  File "/home_local/cryosparc/cryosparc2_master/cryosparc_command/", line 139, in wrapper
    res = func(*args, **kwargs)
  File "/home_local/cryosparc/cryosparc2_master/cryosparc_command/", line 191, in wrapper
    lockfile_path_abs), f"validation error: lock file for {project_uid} not found at {lockfile_path_abs}"
AssertionError: validation error: lock file for P1 not found at /home_local/cryosparc/username/P1/cs.lock

Creating cs.lock file is obviously insufficient to remove it as well.

Is there any low level database command to solve this ?
Thank you

Hi @jcducom,

You can try:

cryosparcm icli
# to delete the job{'uid': 'J2', 'project_uid': 'P1'}, {'$set': {'deleted': True}})
# and if you would like to delete the project too
db.projects.update_one({'uid':'P75'}, {'$set': {'deleted':True}})

Hope this helps!

1 Like

Thank you for the quick reply. It worked! Thank you

1 Like