Skip to content

Commit 7c69e69

Browse files
committed
Removes conditional task retrieval
1 parent ba549e6 commit 7c69e69

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

main.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,9 @@
6565
resource_add_path(WRK_DIR)
6666

6767
retrieved_worker_id = retrieve_worker_id()
68-
tasks_from_api = {'status': 'pending', 'content': ''}
69-
number_of_tasks = 0
7068

71-
# Proceed if a valid worker ID is retrieved and it's not a placeholder
72-
if retrieved_worker_id['status'] == 'success' and retrieved_worker_id['content'] != CogBatt_config.WORKER_ID_PLACEHOLDER_VALUE:
73-
tasks_from_api = get_blocks_to_run(retrieved_worker_id['content'])
74-
number_of_tasks = 0 if tasks_from_api['status'] == 'error' else len(tasks_from_api['content'])
69+
tasks_from_api = get_blocks_to_run(retrieved_worker_id['content'])
70+
number_of_tasks = 0 if tasks_from_api['status'] == 'error' else len(tasks_from_api['content'])
7571

7672

7773
# Initialize the SMILE experiment.

0 commit comments

Comments
 (0)