Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-27 07:41:44

0001 # Generated by Django 5.2.12 on 2026-03-26 21:31
0002 
0003 import django.db.models.deletion
0004 from django.db import migrations, models
0005 
0006 
0007 class Migration(migrations.Migration):
0008 
0009     dependencies = [
0010         ('pcs', '0004_add_prodconfig_data'),
0011     ]
0012 
0013     operations = [
0014         migrations.CreateModel(
0015             name='ProdTask',
0016             fields=[
0017                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
0018                 ('name', models.CharField(help_text='Task name (auto-derived from dataset or manual)', max_length=255, unique=True)),
0019                 ('description', models.TextField(blank=True, default='')),
0020                 ('status', models.CharField(choices=[('draft', 'Draft'), ('ready', 'Ready'), ('submitted', 'Submitted'), ('completed', 'Completed'), ('failed', 'Failed')], default='draft', max_length=20)),
0021                 ('csv_file', models.CharField(blank=True, default='', help_text='CSV file path in simulation_campaign_datasets', max_length=500)),
0022                 ('overrides', models.JSONField(blank=True, help_text='Per-task overrides of ProdConfig fields (JSON)', null=True)),
0023                 ('condor_command', models.TextField(blank=True, default='', help_text='Generated Condor submission command')),
0024                 ('panda_command', models.TextField(blank=True, default='', help_text='Generated PanDA submission command')),
0025                 ('panda_task_id', models.BigIntegerField(blank=True, help_text='PanDA task ID after submission', null=True)),
0026                 ('condor_cluster_id', models.CharField(blank=True, default='', help_text='Condor cluster ID after submission', max_length=100)),
0027                 ('created_by', models.CharField(max_length=100)),
0028                 ('created_at', models.DateTimeField(auto_now_add=True)),
0029                 ('updated_at', models.DateTimeField(auto_now=True)),
0030                 ('dataset', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='prod_tasks', to='pcs.dataset')),
0031                 ('prod_config', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='prod_tasks', to='pcs.prodconfig')),
0032             ],
0033             options={
0034                 'db_table': 'pcs_prod_task',
0035                 'ordering': ['-updated_at'],
0036             },
0037         ),
0038     ]